PlatformAuthService class

Platform Authentication Service Handles OAuth flows for different platforms

Constructors

PlatformAuthService()
factory

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

hasNativeSDK(String platform) bool
Check if the platform has a native SDK
initiateNativeAuth(String platform, [String? username]) Future<bool>
YouTube Native Authentication
initiateOAuth(String platform, String username) Future<String?>
Initiate OAuth flow for web-based platforms
isOAuthCallback(String url) bool
Check if URL is OAuth callback
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshYouTubeTokens() Future<bool>
Refresh YouTube tokens
toString() String
A string representation of this object.
inherited

Operators

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

Constants

oauthConfig → const Map<String, Map<String, dynamic>>
OAuth Configuration for all platforms ⚠️ WARNING: Demo client IDs below - consuming apps MUST provide their own!