All files / src/auth authConstants.ts

100% Statements 13/13
100% Branches 2/2
100% Functions 1/1
100% Lines 13/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62        1x       1x       1x         1x         1x           1x       1x             1x         1x       1x       1x       1x       1x  
 
/**
* @ignore
*/
export const BLOCKSTACK_HANDLER = 'blockstack'
/**
* @ignore
*/
export const BLOCKSTACK_STORAGE_LABEL = 'blockstack'
/**
* This constant is used in the [[redirectToSignInWithAuthRequest]]
*/
export const DEFAULT_BLOCKSTACK_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 BLOCKSTACK_APP_PRIVATE_KEY_LABEL = 'blockstack-transit-private-key'
/**
* @ignore
*/
export const BLOCKSTACK_DEFAULT_GAIA_HUB_URL = 'https://hub.blockstack.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 = 'blockstack-session'