Authgear class

Constructors

Authgear({required String clientID, required String endpoint, String name = "default", bool shareSessionWithSystemBrowser = false, Future<void> sendWechatAuthRequest(String)?, TokenStorage? tokenStorage})

Properties

accessToken String?
no setter
authTime DateTime?
no setter
canReauthenticate bool
no setter
clientID String
final
endpoint String
final
hashCode int
The hash code for this object.
no setterinherited
idTokenHint String?
no setter
name String
final
onSessionStateChange Stream<SessionStateChangeEvent>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendWechatAuthRequest Future<void> Function(String)?
final
sessionState SessionState
no setter
shareSessionWithSystemBrowser bool
final
shouldRefreshAccessToken bool
no setter

Methods

authenticate({required String redirectURI, List<PromptOption>? prompt, List<String>? uiLocales, ColorScheme? colorScheme, AuthenticationPage? page, String? wechatRedirectURI}) Future<UserInfo>
authenticateAnonymously() Future<UserInfo>
authenticateBiometric({required BiometricOptionsIOS ios, required BiometricOptionsAndroid android}) Future<UserInfo>
checkBiometricSupported({required BiometricOptionsIOS ios, required BiometricOptionsAndroid android}) Future<void>
configure() Future<void>
disableBiometric() Future<void>
enableBiometric({required BiometricOptionsIOS ios, required BiometricOptionsAndroid android}) Future<void>
getUserInfo() Future<UserInfo>
isBiometricEnabled() Future<bool>
logout({bool force = false}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open({required SettingsPage page, List<String>? uiLocales, ColorScheme? colorScheme, String? wechatRedirectURI}) Future<void>
openURL({required String url, String? wechatRedirectURI}) Future<void>
promoteAnonymousUser({required String redirectURI, String? wechatRedirectURI, List<String>? uiLocales, ColorScheme? colorScheme}) Future<UserInfo>
reauthenticate({required String redirectURI, int maxAge = 0, List<String>? uiLocales, ColorScheme? colorScheme, String? wechatRedirectURI, BiometricOptionsIOS? biometricIOS, BiometricOptionsAndroid? biometricAndroid}) Future<UserInfo>
refreshAccessToken() Future<void>
refreshIDToken() Future<void>
toString() String
A string representation of this object.
inherited
wechatAuthCallback({required String state, required String code}) Future<void>
wrapHttpClient(Client inner) → Client

Operators

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