UserInfo

user info

tsinterface 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

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

channels ?

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

tsInitialChannel[]

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

tsany

id

user id, this is the only required field

tsstring

isTemporary ?

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

tsboolean