UNPKG

accounts

Version:

Tempo Accounts SDK

29 lines 1.34 kB
import * as Adapter from '../core/Adapter.js'; import type * as Storage from '../core/Storage.js'; /** * Creates a React Native adapter that authorizes access keys via the system browser. * * Authentication opens a browser session and completes via a redirect callback * that returns the signed key authorization. */ export declare function reactNative(options: reactNative.Options): Adapter.Adapter; export declare namespace reactNative { type Options = { /** Host URL for the mobile auth page. @default "https://wallet-next.tempo.xyz" */ host: string; /** Provider display name. @default "Tempo Mobile" */ name?: string | undefined; /** * Browser opener override. Opens the auth URL and returns the callback URL. * @default Uses `expo-web-browser`'s `openAuthSessionAsync`. */ open?: ((url: string, redirectUri: string) => Promise<string | null>) | undefined; /** Redirect URI for the auth callback (e.g. your app's deep link scheme). */ redirectUri: string; /** Reverse-DNS provider identifier. @default "xyz.tempo.mobile" */ rdns?: string | undefined; /** Secure storage adapter for persisting managed access keys. */ secureStorage?: Storage.Storage | undefined; }; } //# sourceMappingURL=adapter.d.ts.map