logo_smallAxellero.io

Refresh Token

Generate a new access/refresh token pair.

Issue a new token pair using a valid refresh token.

Configuration

Inputs

NameCodeTypeRequiredDescription
TokentokenTextYesCurrent access token
Refresh Tokenrefresh_tokenTextYesCurrent refresh token

Outputs

NameTypeDescription
tokenTextNew access token
refresh_tokenTextNew refresh token

Usage

{
  "token": "{{current_access_token}}",
  "refresh_token": "{{current_refresh_token}}"
}

Token Rotation

When a new token pair is issued:

  • The old access token is invalidated
  • The old refresh token is invalidated
  • New tokens have fresh expiration times

Best Practices

  • Call before access token expires
  • Implement retry logic for network failures
  • Handle token refresh failures by redirecting to login