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

Handling of login token: need method to refresh token #100

Open
gruijter opened this issue Nov 15, 2018 · 5 comments
Open

Handling of login token: need method to refresh token #100

gruijter opened this issue Nov 15, 2018 · 5 comments

Comments

@gruijter
Copy link

Since version alpha4 it is possible to login using a token. This token however expires after 1 or 2 hours. Is it possible to provide a method that will refresh the token in time (preferably fully automatic :) )?

@netlob
Copy link
Contributor

netlob commented Nov 15, 2018

You can refresh the token by just logging in again with a username and password :)

@gruijter
Copy link
Author

Sure, but then I get #91

@netlob
Copy link
Contributor

netlob commented Nov 15, 2018

Well, the token refresh feature will be doing that. I cant find any code in the magister web client which refreshes the token...

I think its a better idea to try to fix your error.

@lieuwex
Copy link
Member

lieuwex commented Nov 15, 2018

Indeed, the way I would implement this feature would be by relogging in. (which kinda is already slightly supported, or at least it was on v1, I don't remember if I ported it over to v2).

@jvdoorn
Copy link
Contributor

jvdoorn commented Jan 21, 2019

So there is, as far as you are aware, no way to make a token last longer? Say a couple days or a week? This could allow people to authenticate once and then reuse the token for subsequent logins. However, if the token needs to be "refreshed" every couple hours it would just be a nuisance.

I also came across this page a couple days ago, will there be any complications for Magister.js?

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

4 participants