Skip to content

Cannot find a method to refresh an access token #281

@Chee7ah

Description

@Chee7ah

There is the generateAccessToken method of the ApiClient for generating an access token from the authorization code.

There is also the platform documentation's "Use refresh tokens" section that says that changing the grant_type from authorization_code to refresh_token and supplying a refresh_token instead of code param should make the same flow work for refreshing one.

There is however no way that I can see to refresh a token with the available methods in this package.

  1. Am I just missing it?
  2. Is it not included for a reason? (the php client seems to have it, the java client seems to be also missing it)
  3. Can we add it? If so, made PR Add method for refreshing an access token #282 for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions