Add one-time token login flow and deep-link handling
This commit is contained in:
9
API.js
9
API.js
@@ -195,6 +195,15 @@ const API = {
|
||||
return data;
|
||||
})
|
||||
},
|
||||
logInWithPasswordToken: async (token) => {
|
||||
return postCall("/password/token-login", { token }).then((data) => {
|
||||
if (data && data.status === "ok") {
|
||||
CurrentUserId = data.user_sid;
|
||||
CurrentProfile = data.profile_id;
|
||||
}
|
||||
return data;
|
||||
});
|
||||
},
|
||||
async logout(){
|
||||
console.log("Logging out...")
|
||||
return getCall("/logout").then(()=>{
|
||||
|
||||
Reference in New Issue
Block a user