aladinnetwork-blockstack
Version:
The Aladin Javascript library for authentication, identity, and storage.
62 lines (56 loc) • 1.34 kB
text/typescript
/**
* @ignore
*/
export const ALADIN_HANDLER = 'aladin'
/**
* @ignore
*/
export const ALADIN_STORAGE_LABEL = 'aladin'
/**
* This constant is used in the [[redirectToSignInWithAuthRequest]]
*/
export const DEFAULT_ALADIN_HOST = 'https://browser.blockstack.org/auth'
/**
* Non-exhaustive list of common permission scopes.
*/
export 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 const DEFAULT_SCOPE = [AuthScope.store_write]
/**
* @ignore
*/
export const ALADIN_APP_PRIVATE_KEY_LABEL = 'aladin-transit-private-key'
/**
* @ignore
*/
export const ALADIN_DEFAULT_GAIA_HUB_URL = 'https://finalgaia.aladinnetwork.org/'
/**
* @ignore
*/
export const DEFAULT_CORE_NODE = 'https://core.blockstack.org'
/**
* @ignore
*/
export const NAME_LOOKUP_PATH = '/v1/names'
/**
* @ignore
*/
export const LOCALSTORAGE_SESSION_KEY = 'aladin-session'