social / pragma.account / AccountService / refreshTokensV1 /
refreshTokensV1 #
suspend fun refreshTokensV1(session: PlayerSession, request: AccountRpc.RefreshTokensV1Request): AccountRpc.RefreshTokensV1Response
Refreshes authentication tokens by accepting older but not expired tokens, checking whether the user still has authentication privileges, and issuing new tokens.
PragmaResultErrors
- PragmaError.AccountService_Unauthorized if game and social are expired
- PragmaError.AccountService_Unauthorized if tokens are mismatched against the session
- PragmaError.AccountService_Unauthorized if game and social tokens are mismatched against one another
- PragmaError.AccountService_Unauthorized when trying to authenticate with an unexpected session type
- PragmaError.AccountService_Error when failing to create authentication tokens