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
Zafar Ansari edited this page Oct 10, 2022
·
1 revision
Get User
So once you have signed in and got the token you can get the user info as follows...
lettoken=awaitdb.signin({NS: "purelygigs",DB: "purelygigs",SC: "allusers",
email,
password,});letuser=awaitdb.info();console.log(user);// You can also do the following, which is almost the same thingletauth=awaitdb.query('SELECT * FROM $auth');console.log(auth);