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

Is there a way to use Refresh Tokens and Wordpress? #296

Closed
cwhittl opened this issue Mar 2, 2017 · 5 comments
Closed

Is there a way to use Refresh Tokens and Wordpress? #296

cwhittl opened this issue Mar 2, 2017 · 5 comments
Milestone

Comments

@cwhittl
Copy link

cwhittl commented Mar 2, 2017

Right now I'm using a users JWT Token to call my custom APIs and it's working nice. The only issue is that when the token expires I have to kick the user out of the site and have them login again. Which is not the best user experience.

I've looked at options to use the refresh token but it doesn't look like there is a vehicle or documentation of it for Wordpress.

Any help?
Thanks

@glena
Copy link
Contributor

glena commented Mar 3, 2017

The best way to do that is to use the user-login-action hook. We can add the refresh token there if it comes from auth0 so you can store it and use it when you need it. https://github.com/auth0/wp-auth0#user-login-action

@cwhittl
Copy link
Author

cwhittl commented Mar 3, 2017

That would be great, I'm using that action now to store the JWT Token.

@kostenickj
Copy link

any update on this?

@joshcanhelp joshcanhelp added this to the 3.6.0 milestone May 4, 2018
@joshcanhelp joshcanhelp reopened this May 4, 2018
@joshcanhelp
Copy link
Contributor

Sorry for the delay folks. I can squeeze this into the upcoming release, will have a PR tomorrow.

@joshcanhelp
Copy link
Contributor

Fixed in #456, merged into dev and ready for release 👍

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants