You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The preview token is only meant to be used to query data from Optimizely Graph. Do not depend on the contents of the token itself as they are subject to change in the future.
"
The text was updated successfully, but these errors were encountered:
In the function extractParams at https://github.com/episerver/content-graph-js-sdk/blob/main/samples/musicfestival-frontend-react/src/helpers/urlHelper.ts#L20, contentId and workId is read from the payload of of the previewToken :
const contentId = payload.c_id && parseInt(payload.c_id!.toString());
But the documentation at https://docs.developers.optimizely.com/platform-optimizely/v1.4.0-optimizely-graph/docs/on-page-editing-using-content-graph#setup-decoupled-site states that we should not depend on the content of the token :
"Note
The preview token is only meant to be used to query data from Optimizely Graph. Do not depend on the contents of the token itself as they are subject to change in the future.
"
The text was updated successfully, but these errors were encountered: