LynxWebAuthSession
Opens a sign-in page in the phone's sign-in sheet and returns the URL it redirects to. import { LynxWebAuthSession, WebAuthSessionError, type WebAuthSessionOptions, type WebAuthSessionErrorCode } from '@blotch/angular-lynx';
Sign in with a web page shows it in use.
Usage
API
LynxWebAuthSession
Uses ASWebAuthenticationSession on iOS and a Custom Tab on Android. Only the apps --platform builds, with ng build or ng serve, have it; elsewhere, such as Lynx Explorer, the web preview and unit tests, start() rejects with unavailable.
LynxWebAuthSession.start()
Opens options.url and resolves with the whole URL the page redirects to on options.callbackScheme, query and fragment included. Rejects with a WebAuthSessionError. One session can be open at a time: starting another while one is open rejects with failed.
