Skip to main content

WebKitWebViewUIImplementation

@authgear/react-native


@authgear/react-native / WebKitWebViewUIImplementation

Class: WebKitWebViewUIImplementation

WebKitWebViewUIImplementation provides more customization options other than DeviceBrowserUIImplementation.

For iOS, it is using WKWebView (see https://developer.apple.com/documentation/webkit/wkwebview). For Android, it is using android.webkit.WebView (see https://developer.android.com/reference/android/webkit/WebView).

Implements​

Constructors​

Constructor​

new WebKitWebViewUIImplementation(options?): WebKitWebViewUIImplementation

Parameters​

options?​

WebKitWebViewUIImplementationOptions

Returns​

WebKitWebViewUIImplementation

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