UNPKG

accounts

Version:

Tempo Accounts SDK

31 lines 1.4 kB
import { type MobileWebAuth } from 'wata'; import type * as Adapter from '../../Adapter.js'; /** * Creates a mobile web auth adapter that forwards wallet RPC through Wata. * * Authentication opens a browser session and completes via an encrypted app-link * callback carrying the wallet RPC response. */ export declare function mobileWebAuth(options: mobileWebAuth.Options): Adapter.Adapter; export declare namespace mobileWebAuth { /** Base options for {@link mobileWebAuth}. */ type BaseOptions = { /** Public HTTPS origin that hosts this app's Wata consumer discovery document. */ baseUrl: string; /** Override the Wata discovery `fetch` implementation. */ fetch?: MobileWebAuth.Options['fetch'] | undefined; /** Host discovery origin or preloaded Wata host document. */ host: MobileWebAuth.Options['host']; /** Provider display name. */ name: string; /** Opens the browser auth session and returns the callback URL. */ openAuthSession: NonNullable<MobileWebAuth.Options['openAuthSession']>; /** Redirect URI for the auth callback (e.g. your app's deep link scheme). */ redirectUri: string; /** Reverse-DNS provider identifier. */ rdns: string; }; /** Options for {@link mobileWebAuth}. */ type Options = BaseOptions; } //# sourceMappingURL=mobileWebAuth.d.ts.map