mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 09:35:37 +00:00
added signup v3 endpoints and developed initial new signup flow
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user