Skip to content

How to refresh the access token? #6

Open
@vidarl

Description

@vidarl

Hi

First, I would like to thank you for giving some code on how to get the access_token.

But upon retrial of the access_token, you also get an refresh token.
Any idea how to use that refresh_token to get a new access_token ( which will expire after 3 days) ?

I tried a bold move of sending a POST request to /yapi/o/token/ with post_data grant_type=refresh_token&refresh_token=[....], but that give response {"error": "invalid_client"}

I kinda assume the invalid_client error really means bad request....

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