You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I do gun. On('auth', (user, message, event) => {}). The user object I get at runtime is this as stated in documents
// on success calls callback with a reference to the gun user// cb(at) where at is an object as below{ack: 2,back: object,//reference to the root object (internal)get: "~publicKeyOfUser",gun: object,//gun root (internal)id: 6,//id of the node in graph (internal)on: functiononto(),opt: object,//uuid function object (internal)put: object,//object containing pub, alias and epub of the userroot: object,//gun root reference (internal)sea: object,//object containing keys of the usersoul: "~publicKeyOfUser",tag: object//gun in and out reference (internal)}// on failure callback is called cb(ack) where ack is as below{err: 'Wrong user or password.'}
But the type definition in typescript is
exporttypeGunUser={/** Username or Alias which can be used to find a user */alias: string;// auth: string;/** public key for encryption */
epub: string;/** public key */
pub: string;};
as defined in https://github.com/amark/gun/blob/master/types/sea/GunUser.d.ts
The text was updated successfully, but these errors were encountered:
when I do gun. On('auth', (user, message, event) => {}). The user object I get at runtime is this as stated in documents
But the type definition in typescript is
as defined in
https://github.com/amark/gun/blob/master/types/sea/GunUser.d.ts
The text was updated successfully, but these errors were encountered: