Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Handle edge case in user authentication #1771

Open
birtony opened this issue Jun 30, 2022 · 0 comments
Open

Handle edge case in user authentication #1771

birtony opened this issue Jun 30, 2022 · 0 comments
Labels
area: UI Something related to UI type: bug Something isn't working

Comments

@birtony
Copy link
Contributor

birtony commented Jun 30, 2022

When the user signs in the first time, we save accessToken and subjectId to localStorage. Then, on subsequent sing in attempts, we fetch those parameters and use them to initialize agent instance. However, if the user manually goes into browser settings and clears the subjectId, we won't have anywhere to get it from to initialize the agent instance. We need to add logic to fetch subjectId from the requestAccess response in this case (auth server returns both accessToken and subjectId in case user's keypair has already been used to register the user)

@birtony birtony added type: bug Something isn't working area: UI Something related to UI labels Jun 30, 2022
@birtony birtony moved this to Todo in TrustBloc Wallet/VCS Jun 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: UI Something related to UI type: bug Something isn't working
Projects
No open projects
Status: Todo
Development

No branches or pull requests

1 participant