Base solution for your next web application
Open Closed

API - Using refresh token #11984


User avatar
0
deltavision created

Hi,

v11.2.1 MVC .NET Core

With API login - we get a access token and a refresh token.

How do we use the refresh token, to get a new access token, when access token expires? Which endpoint to call? - and parameters


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You should call RefreshToken endpoint of TokenAuthController with your refresh token when the access token expires.

  • User Avatar
    0
    deltavision created

    Hi ismcagdas,

    can we use refresh token, before access token expires?

    Tryed to call RefreshToken - but it fails here: (Invalid token)

  • User Avatar
    0
    deltavision created

    Hi,

    does RefreshToken require to add *TenantId *and *Bearer *(token) to the call (Header)?

    Tryed but with and without - same result.

    I expect RefreshToken contains the information.

  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi, deltavision,

    Can you share the content of the IsRefreshTokenValid method with us so that we can examine it in detail?