This endpoint refreshes expired authentication sessions for Grid Accounts and returns new encrypted credentials. It implements a two-tier approach to handle different expiration scenarios automatically.
Using the Grid API directly requires advanced configurations. Grid SDK is
the recommended way to authenticate accounts. It handles authentication, key
management, automatic failover, and transaction signing. Learn more about the
Grid SDK in the Grid SDK guide.
This endpoint requires an active bearer token from a previous authentication.
For initial authentication, use Initiate
Authentication followed
by Verify OTP.
Grid automatically handles different token expiration states:
1
Case 1: Re-authentication
If the user token is still valid but the session needs refreshing, the
endpoint re-authenticates using the existing token to obtain new encrypted
credentials.
2
Case 2: Token Refresh
If the user token has expired, the endpoint uses the refresh token to obtain
a new user token, then re-authenticates to get new encrypted credentials.
Session credentials expire: Your authentication session has expired and you need new credentials
Token rotation: Implementing proactive token rotation for enhanced security
Long-running applications: Maintaining continuous access without requiring user re-authentication
Automatic Handling The endpoint automatically determines which case of
refresh to use based on the token expiration state. You don’t need to specify
which approach to use.