Skip to main content

DeviceBrowserUIImplementation

@authgear/react-native


@authgear/react-native / DeviceBrowserUIImplementation

Class: DeviceBrowserUIImplementation

DeviceBrowserUIImplementation is the default UIImplementation.

For iOS, it is using ASWebAuthenticationSession (see https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession). For Android, it is using Custom Tabs (see https://developer.chrome.com/docs/android/custom-tabs).

Implements

Constructors

Constructor

new DeviceBrowserUIImplementation(): DeviceBrowserUIImplementation

Returns

DeviceBrowserUIImplementation

Methods

openAuthorizationURL()

openAuthorizationURL(options): Promise<string>

openAuthorizationURL must open options.url. When redirectURI is detected, the implementation must close itself and return the redirectURI with query. If the end-user closes it, then openAuthorizationURL must reject the promise with CancelError.

Parameters

options

OpenAuthorizationURLOptions

Returns

Promise<string>

Implementation of

UIImplementation.openAuthorizationURL