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

Auth: save token to local storage #11

Open
dariok opened this issue Nov 22, 2018 · 0 comments
Open

Auth: save token to local storage #11

dariok opened this issue Nov 22, 2018 · 0 comments
Assignees

Comments

@dariok
Copy link
Owner

dariok commented Nov 22, 2018

If a permanent token is present in config (e.g. for DNB SRU), use this.
Else, try to login in using the error handler
The login in the error handler should then write the token to local storage

If a token is in local storage, use it in request.

@dariok dariok self-assigned this Nov 22, 2018
dariok added a commit that referenced this issue Nov 24, 2018
- get method form config.json
- set config via function so it can be updated if new
  auth was required (e.g. non-permanent token)

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

No branches or pull requests

1 participant