Add one-time token login flow and deep-link handling

This commit is contained in:
Adolfo Reyna
2026-02-21 21:28:05 -05:00
parent fe293828e6
commit f9d4457b5a
4 changed files with 116 additions and 4 deletions

9
API.js
View File

@@ -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(()=>{