Skip to content

Small question about refresh tokens #3

Description

@MoltenCoffee

Hey! Thanks for the wonderful examples, they really were an eye opener for something I've lost some nights sleep over.

one thing I can't really get my head around is the sendRefreshToken() call in both the installCookieJWT middleware and refreshTokenPlugin schema extension. sendRefreshToken() is of course needed in refreshTokenPlugin, as otherwist the refresh token wouldn't be set at all, but do I read correctly it's set in the former as well?

More to the point, am I correct in the assumption that you extend the expiry of the refresh-token every time a new access-token is set?

Thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions