Authgear
Constructors
Properties
Current access token.
OAuth client ID.
Current session state. See SessionState.
Functions
Approve a app2app authentication request.
Authenticate a user by directing the user to an external browser to authenticate.
Authenticate anonymously by generating a dummy user. The dummy user persist until the app is uninstalled.
Authenticate with previously enabled biometric.
Open change password page in webview
Check if biometric is supported. If not supported, an exception will be thrown.
Clear SDK session state. Clear refresh token and reset session state to SessionState.NO_SESSION.
Configure authgear. This must be ran before any other methods. If configuration is successful and there was a valid user session, authgear's accessToken is non-null and the token is ready to be used.
Open delete account page in webview
Disable biometric if it was enabled.
Enable biometric for the current user.
Fetch user info. Note that this method does not refresh access token so user should call configure or refreshAccessTokenIfNeeded when necessary.
Generate URL for opening webpage with current session.
Check if biometric is enabled.
Logout the current session by revoking the refresh token and access token. It works for both normal user and anonymous user. For both cases, you can obtain the session again via authenticate or authenticateAnonymously.
Share the current authenticated session to a web browser. preAuthenticatedURLEnabled
must be set to true to use this method.
Open the specific Page in web view.
Open the specific path on the authgear server.
Parse an uri into app2app authentication request.
Promote the current anonymous user. Note that this must not be called before there is an anonymous user.
Reauthenticate the user either by biometric or web.
Refresh access token when necessary.
Refresh access token when necessary synchronously if needed. Do NOT call this on the main thread.
Refresh ID token.
Reject a app2app authentication request.
Start app2app authentication.
WeChat auth callback function. In WeChat login flow, after returning from the WeChat SDK, this function should be called to complete the authorization.