You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: