Embedded tokens can (and should) have a short expiration time, and tokens used by iframes, etc., can be refreshed automatically be calling prismatic.authenticate() with a newly generated token.
This adds token refresh to our example embedded app. Users can specify tokenValidSeconds in their config, and tokens will automatically refresh 30 seconds ahead of token expiration.
Embedded tokens can (and should) have a short expiration time, and tokens used by iframes, etc., can be refreshed automatically be calling
prismatic.authenticate()
with a newly generated token.This adds token refresh to our example embedded app. Users can specify
tokenValidSeconds
in their config, and tokens will automatically refresh 30 seconds ahead of token expiration.