apple_sign_in_plugin_platform_interface 0.0.1-dev.0 copy "apple_sign_in_plugin_platform_interface: ^0.0.1-dev.0" to clipboard
apple_sign_in_plugin_platform_interface: ^0.0.1-dev.0 copied to clipboard

A common platform interface for the apple_sign_in_plugin package.

apple_sign_in_plugin_platform_interface #

License: MIT

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 its AppleAuthIdentity / AppleAuthTokens / AppleAuthAuthorization / AppleAuthLifecycle / AppleAuthMetadata components), AppleAuthEvent, AppleSignInCapabilities, AppleSignInDiagnostics, AppleDisconnectResult, and the AppleBackendAdapter interface.
  • 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 JwtDecoder utility for inspecting (not verifying) JWT contents — used internally as a best-effort fallback to populate AppleAuthIdentity.email when 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.

0
likes
0
points
147
downloads

Publisher

unverified uploader

Weekly Downloads

A common platform interface for the apple_sign_in_plugin package.

Repository (GitHub)
View/report issues

Topics

#apple-sign-in #authentication

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on apple_sign_in_plugin_platform_interface