revokeAllTokens method
Future<void>
revokeAllTokens(
- Session session, {
- required UuidValue? authUserId,
- Transaction? transaction,
- String? method,
- String? tokenIssuer,
override
Revokes all tokens matching the given criteria.
If authUserId is provided, only tokens for that user will be revoked.
If method is provided, only tokens created with that authentication method will be revoked.
If tokenIssuer is provided, only tokens from that specific token manager will be revoked.
Implementation
@override
Future<void> revokeAllTokens(
final Session session, {
required final UuidValue? authUserId,
final Transaction? transaction,
final String? method,
final String? tokenIssuer,
}) async {
await Future.wait(
_allTokenManagers.map(
(final manager) => manager.revokeAllTokens(
session,
authUserId: authUserId,
transaction: transaction,
method: method,
tokenIssuer: tokenIssuer,
),
),
);
}