Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

JWT token refresh example for example app #86

Closed
wants to merge 1 commit into from

Conversation

taylorreece
Copy link
Member

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.

@taylorreece
Copy link
Member Author

Closing in favor of simpler #90

@taylorreece taylorreece closed this Aug 7, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant