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.
PragmaApplicationErrors
- AccountRpc.UnauthorizedApplicationError if game and social are expired
- AccountRpc.UnauthorizedApplicationError if tokens are mismatched against the session
- AccountRpc.UnauthorizedApplicationError if game and social tokens are mismatched against one another
- AccountRpc.UnauthorizedApplicationError when trying to authenticate with an unexpected session type
- AccountRpc.UnauthorizedApplicationError when failing to create authentication tokens