with_token#
- OIDCSessionBuilder.with_token(refresh_token)#
Use a provided refresh token to authenticate the session.
The refresh token will be used to request a new access token from the Identity Provider, this will be automatically refreshed shortly before expiration.
- Parameters:
- refresh_token
str
Refresh token.
- refresh_token
- Returns:
ApiClientFactory
Original client factory object.
Notes
The signature of this method will change in an upcoming release to allow both access and refresh tokens to be provided. Update usages to provide the
refresh_token
keyword argument rather than passing a positional argument.