How to provide the preview token for the editor/preview in client side app?

What’s the best way to use/provide the preview token [for the editor preview usage] within a client app?

Even when using SSR the token ends up in the client otherwise a hard reload would be necessary after each ‘change’/‘published’ event.

In my opinion the best way would be storyblok to put a short-lived token to the query params when opening the preview which can then be used to fetch the draft content.

Did I miss something?

Hello Simon,

the preview and public tokens are read-only and usually aren’t problematic if exposed client side.

Best regards,
Hannes