Skip to content

Commit

Permalink
feat(authenticator): Publish the function to revoke the Apple user to…
Browse files Browse the repository at this point in the history
…ken (#91)
  • Loading branch information
naipaka authored May 31, 2024
1 parent ac72d6e commit 2824952
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/altfire_authenticator/lib/src/authenticator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ class Authenticator {
}
}

/// Reauthenticate with Apple.
/// Used to revoke the Apple user token.
Future<UserCredential> reauthenticateWithApple() async {
return _appleAuth.reauthenticate();
}

/// Revokes the Apple user token.
Future<void> revokeTokenWithAuthorizationCode(String code) async {
await _auth.revokeTokenWithAuthorizationCode(code);
}

/// Changes this instance to point to an Auth emulator running locally.
Future<void> useEmulator(String host, int port) =>
_auth.useAuthEmulator(host, port);
Expand Down

0 comments on commit 2824952

Please sign in to comment.