Skip to main content

UIImplementation

@authgear/capacitor


@authgear/capacitor / UIImplementation

Interface: UIImplementation

UIImplementation can open an URL and close itself when a redirect URI is detected.

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>