Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to restore saved credentials when using WebAuthenticator flow #47

Closed
Ivaskuu opened this issue Mar 31, 2018 · 3 comments
Closed

Comments

@Ivaskuu
Copy link

Ivaskuu commented Mar 31, 2018

How can I save the current accessToken (or the refreshToken) when the user closes the app, and reuse it the next time the user opens the app without going again through the authentication browser where the user needs to insert the username and password?

@bkonyi
Copy link
Member

bkonyi commented Mar 31, 2018

You should be able to get the OAuth2 credentials from the Authenticator's credentials property. To save, you should be able to do something like this example, but there currently isn't a way to repopulate them through DRAW's API (a major oversight of mine). I'll add a way to do that this weekend.

@bkonyi bkonyi self-assigned this Mar 31, 2018
@bkonyi bkonyi changed the title How to save the state of the current user? No way to restore saved credentials when using WebAuthenticator flow Mar 31, 2018
@bkonyi
Copy link
Member

bkonyi commented Apr 4, 2018

This should be resolved once #52 is merged.

@bkonyi bkonyi closed this as completed Apr 4, 2018
@bkonyi
Copy link
Member

bkonyi commented Apr 4, 2018

Fix is available in version 0.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants