social / pragma.account / AccountService / refreshTokensOperatorV1 /
refreshTokensOperatorV1 #
suspend fun refreshTokensOperatorV1(session: OperatorSession, request: AccountRpc.RefreshTokensOperatorV1Request): AccountRpc.RefreshTokensOperatorV1Response
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