added signup v3 endpoints and developed initial new signup flow

This commit is contained in:
Sheen Capadngan
2023-05-04 01:32:40 +08:00
parent f703ee29e5
commit 1172726e74
15 changed files with 243 additions and 34 deletions
+7 -1
View File
@@ -31,10 +31,16 @@ export const useProviderAuth = () => {
window.addEventListener('storage', handleStorageChange);
if (providerAuthToken) {
const { userId: resultUserId, email: resultEmail } = jwt_decode(providerAuthToken) as any;
setEmail(resultEmail);
setUserId(resultUserId);
}
return () => {
window.removeEventListener('storage', handleStorageChange);
};
});
}, []);
return {
email,