Method CreateTokenAsync
CreateTokenAsync(TSessionToken, ISessionTokenRefreshInfo, bool)
Creates a new session token for the session represented by the previous token with the provided refresh info applied.
Declaration
ValueTask<TSessionToken> CreateTokenAsync(TSessionToken previousToken, ISessionTokenRefreshInfo refreshInfo, bool isStale)
Parameters
| Type | Name | Description |
|---|---|---|
| TSessionToken | previousToken | The token the new token is based on. |
| ISessionTokenRefreshInfo | refreshInfo | The refresh info to apply to the new token. |
| bool | isStale | Indicates whether the previous token's information was found to be out of date by IsTokenStaleAsync(TSessionToken). If true, the new token must be built from the latest information in the data store. If false, implementations may reuse the previous token's information and only apply the refresh info (typically synchronously). Reloading the information regardless of this value is always safe, just slower. |
Returns
| Type | Description |
|---|---|
| ValueTask<TSessionToken> |