WebAuthService class

Simple web authentication service that wraps flutter_web_auth_2

Provides a clean interface for OAuth2 web authentication flows without exposing platform-specific complexities.

Constructors

WebAuthService({required OAuthConfig config})
const

Properties

config OAuthConfig
final
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({required String authorizationUrl, required String callbackUrlScheme}) Future<String>
Performs OAuth2 authentication using the system browser
buildRedirectUri() String
Builds the redirect URI for OAuth2 flow
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateCallbackScheme(String callbackUrl) bool
Validates the callback URL scheme matches the configuration

Operators

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

Static Methods

isAvailable() Future<bool>
Checks if web authentication is available on the current platform