AppleIdpUtils class

Utility functions for the Apple identity provider.

These functions can be used to compose custom authentication and administration flows if needed.

But for most cases, the methods exposed by AppleIdp and AppleIdpAdmin should be sufficient.

Constructors

AppleIdpUtils({required TokenManager tokenManager, required SignInWithApple signInWithApple, required AuthUsers authUsers})
Creates a new instance of AppleIdpUtils.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticate(Session session, {required String identityToken, required String authorizationCode, required bool isNativeApplePlatformSignIn, String? firstName, String? lastName, required Transaction? transaction}) Future<AppleAuthSuccess>
Authenticates a user using an identityToken and authorizationCode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshToken(Session session, {required AppleAccount appleAccount, required void onExpiredUserAuthentication(UuidValue authUserId)}) Future<void>
Refreshes the Apple appleAccount's refresh token to ensure it is still valid.
serverNotificationHandler(Session session, Request req) Future<Result>
Handler for revoking sessions based on server-to-server notifications coming from Apple.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited