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

RefreshTokens #8

Open
wilcraig opened this issue Feb 10, 2017 · 0 comments
Open

RefreshTokens #8

wilcraig opened this issue Feb 10, 2017 · 0 comments

Comments

@wilcraig
Copy link

I'd like to implement refresh tokens in the app. Right now I have a meteor method that I've defined that actually makes the RefreshToken post call to my OAuth server with the correct parameters and I'm getting back the expected result from the server. However, when I try to set the new access_token and refresh_token value back to the service, when I try to draw from it the next time, it has outdated values. I think I'm probably doing something wrong. Basically I'm trying to set the access token by doing something like this:

Meteor.user().services.oidc.accessToken = response.data.accessToken

But that's not persisting the change beyond that method. Any ideas how I can persist this change? I'm very new to Meteor. I imagine I just have to do some sort of upsert on the service itself but I'm not sure. Additionally, I'd be interested in implementing RefreshToken flow into this package as well, but I'm really not sure of the correct place to do that.

Thanks!

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