UNPKG

aladinnetwork-blockstack

Version:

The Aladin Javascript library for authentication, identity, and storage.

57 lines (56 loc) 1.44 kB
/** * @ignore */ export declare const ALADIN_HANDLER = "aladin"; /** * @ignore */ export declare const ALADIN_STORAGE_LABEL = "aladin"; /** * This constant is used in the [[redirectToSignInWithAuthRequest]] */ export declare const DEFAULT_ALADIN_HOST = "https://browser.blockstack.org/auth"; /** * Non-exhaustive list of common permission scopes. */ export declare const enum AuthScope { /** * Read and write data to the user's Gaia hub in an app-specific storage bucket. * This is the default scope. */ store_write = "store_write", /** * Publish data so that other users of the app can discover and interact with the user. * The user's files stored on Gaia hub are made visible to others via the `apps` property in the * user’s `profile.json` file. */ publish_data = "publish_data", /** * Request the user's email if available. */ email = "email" } /** * @ignore */ export declare const DEFAULT_SCOPE: AuthScope[]; /** * @ignore */ export declare const ALADIN_APP_PRIVATE_KEY_LABEL = "aladin-transit-private-key"; /** * @ignore */ export declare const ALADIN_DEFAULT_GAIA_HUB_URL = "https://finalgaia.aladinnetwork.org/"; /** * @ignore */ export declare const DEFAULT_CORE_NODE = "https://core.blockstack.org"; /** * @ignore */ export declare const NAME_LOOKUP_PATH = "/v1/names"; /** * @ignore */ export declare const LOCALSTORAGE_SESSION_KEY = "aladin-session";