UserInfo

user info

interface UserInfo {
  access?: 'admin' | 'viewer' | 'editor' | 'no-access';
  channels?: InitialChannel[];
  data?: any;
  id: string;
  isTemporary?: boolean;
}

index

Properties

access ?

user access level across the instance by default editor

"admin" | "viewer" | "editor" | "no-access"

channels ?

join given channels on authorized. these channels has the devloper as the sole admin

InitialChannel[]

data ?

for newer users. to save to saved users use the REST api to add users beforehand for this for faster logins. if the user is already saved only id is required

any

id

user id, this is the only required field

string

isTemporary ?

whether this user's data should be saved, all the other fields will be ignored if true

boolean