Skip to content

TypeScript API / @contentia/decap / ACCESS_TOKEN_STORAGE_KEY

Variable: ACCESS_TOKEN_STORAGE_KEY ​

ts
const ACCESS_TOKEN_STORAGE_KEY: "contentia_access_token" = 'contentia_access_token';

sessionStorage keys the session is kept under. They are a public contract: a host app that calls its own API with the CMS session reads the access token from here before the backend has authenticated. Once it has, getToken() is the right source, since it refreshes an expired token.