Skip to content

RefreshTokens #8

@wilcraig

Description

@wilcraig

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions