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

How to verify whether the access token is expired or invalid? #2929

Closed
webyushao opened this issue May 6, 2024 · 4 comments
Closed

How to verify whether the access token is expired or invalid? #2929

webyushao opened this issue May 6, 2024 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@webyushao
Copy link

webyushao commented May 6, 2024

After obtaining access_token using getAuthToken method on node side, I want to know when the access_token will expire. May I ask which interface can I check?
My process is to get the access_token through getAuthToken and then get the userInfo through the parseJwtToken method.

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the question Further information is requested label May 6, 2024
@hsluoyz
Copy link
Member

hsluoyz commented May 6, 2024

@webyushao plz change all your texts (title and content) into English

@webyushao webyushao changed the title 如何来校验access_token是否过期或者失效? How to verify whether the access token is expired or invalid? May 6, 2024
@webyushao
Copy link
Author

@hsluoyz If you have time, please explain the whole process of login verification, thank you

@hsluoyz
Copy link
Member

hsluoyz commented May 6, 2024

@webyushao access_token is a JWT. It contains expire time after JWT parsing

@hsluoyz hsluoyz closed this as completed May 6, 2024
@casdoor casdoor deleted a comment from webyushao May 7, 2024
@casdoor casdoor locked as resolved and limited conversation to collaborators May 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants