Authie.Start building
Tokens and credentials

Which credential do I use?

Browser code uses a publishable key, trusted servers use an environment secret key, and application requests carry short-lived session tokens.

What the React SDK can access

@authie/react reads safe client, session, and user resources from Authie's Frontend API. It can request a short-lived session token for your application API, but never receives the environment secret key or Authie's long-lived session credential.

The complete map

CredentialRepresentsWhere it belongsUsed for
Developer sessionYou, signed into the Authie consoleYour browserManual configuration
Publishable keyOne application environmentBrowser and server configurationLocating and scoping the Frontend API
Secret keyOne application environmentBackend secret storage onlyCalling the Backend API
Session tokenOne user session in one application environmentShort-lived request credentialAuthenticating application requests
Authie session credentialThe long-lived browser sessionAuthie-controlled secure storageRotating session tokens and ending sessions

Provisioning credentials

authie init uses a short-lived, browser-approved enrollment ceremony and returns the environment secret once. Do not copy workspace-wide management credentials into an application. Production secrets begin with authie_sk_live_; development secrets begin with authie_sk_test_.