apple_sign_in_plugin_platform_interface 0.0.1-dev.1
apple_sign_in_plugin_platform_interface: ^0.0.1-dev.1 copied to clipboard
A common platform interface for the apple_sign_in_plugin package.
apple_sign_in_plugin_platform_interface #
A common platform interface for the
apple_sign_in_plugin
package.
This package defines the interface that platform-specific implementations
of apple_sign_in_plugin must implement to be registered as the platform's
AppleSignInPlatform, plus:
- The shared, strongly-typed models:
AppleCredential,ApplePersonName,AppleAuthorizationScope,AppleCredentialState,AppleRealUserStatus,AppleSignInException,AppleAuthSession(and itsAppleAuthIdentity/AppleAuthTokens/AppleAuthAuthorization/AppleAuthLifecycle/AppleAuthMetadatacomponents),AppleAuthEvent,AppleSignInCapabilities,AppleSignInDiagnostics,AppleDisconnectResult, and theAppleBackendAdapterinterface. - A default
MethodChannel-based implementation (MethodChannelAppleSignIn) that platform packages can reuse when their Dart-side logic doesn't need to differ from the channel contract. - A
JwtDecoderutility for inspecting (not verifying) JWT contents — used internally as a best-effort fallback to populateAppleAuthIdentity.emailwhen a platform's native response doesn't include it directly.
Usage #
App developers should generally not need to depend on this package
directly — depend on
apple_sign_in_plugin
instead.
Platform implementation authors should implement AppleSignInPlatform
(extend, not implement, so new methods added here don't break existing
implementations at compile time) and register it as
AppleSignInPlatform.instance from their own package's registerWith().
👤 Author #
Maintained by DHC Tech.
📄 License #
This package is licensed under the MIT License.