WebViewAuthHandler class
Centralized authentication handler for WebView pages Handles JavaScript callbacks and token management
Constructors
- WebViewAuthHandler({required BuildContext context, required dynamic onSuccess(String accessToken, String email, String userId), required VoidCallback onError})
Properties
- context → BuildContext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onError → VoidCallback
-
final
- onSuccess → dynamic Function(String accessToken, String email, String userId)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setupAuthenticationHandler(
InAppWebViewController controller) → void - Sets up the onPostAuthentication JavaScript handler
-
setupCloseHandler(
InAppWebViewController controller, VoidCallback onClose) → void - Sets up the onWindowClose JavaScript handler
-
setupLogoutHandler(
InAppWebViewController controller, VoidCallback onLogout) → void - Sets up the onPostLogout JavaScript handler
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited