reauthorize method

  1. @override
Future<ReauthorizeResult> reauthorize(
  1. ReauthorizeParams params
)
override

Non-privileged method

This method attempts to put the current session in an authorized state, with privileges associated with the authorization token.

On success, the current session will be placed into an authorized state. Additionally, updated values for auth token, accounts, and/or wallet_uri_base will be returned. These may differ from those originally provided in the authorize response for this auth token; if so, they override any previous values for these parameters. The prior values should be discarded and not reused. This allows a wallet endpoint to update the auth token used by the dApp endpoint, or to modify the set of authorized account addresses or their labels without requiring the dApp endpoint to restart the authorization process.

If the result is SolanaWalletAdapterProtocolExceptionCode.authorizationFailed, this auth token cannot be reused, and should be discarded. The dApp endpoint should request a new token with the authorize The session with be placed into the unauthorized state.

Implementation

@override
Future<ReauthorizeResult> reauthorize(
  final ReauthorizeParams params,
) => _send(Reauthorize(params));