Skip to Content
SPAPS is proprietary hosted SaaS. Paid access required; pre-1.0 contracts may change. Terms and access
GuidesAuth And Staging

Auth And Hosted Staging

SPAPS authentication has two identities: the application is identified by an API key, and the user is identified by a signed session or JWT. Develop your application against a hosted staging application so those boundaries match production without operating a SPAPS backend.

Environment Model

EnvironmentSPAPS hostCredentialsConsumer responsibility
Staginghttps://api.sweetpotato.devStaging application keys and allowed originsRun and test your own app
Productionhttps://api.sweetpotato.devSeparate production application keys and allowed originsDeploy your own app

Your application may run on localhost. Add its exact development origin to the staging application; do not replace SPAPS with a local backend.

Publishable keys belong in browser applications. Secret keys belong only in server-side secret storage. Never copy a production key into a local environment.

Request Shape

An application-bound user token must match the application selected by the API key. Global human sessions remain subject to the selected application’s account-erasure and route-specific access checks. Protected session reads and credential changes recheck current session authority, including revocation.

Promotion Checklist

  1. Prove sign-in and refresh with staging credentials.
  2. Verify browser requests from every declared development and preview origin.
  3. Verify privileged calls from your server with a staging secret key.
  4. Provision separate production credentials.
  5. Replace keys through environment configuration; do not change application code.

Next