Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add example for custom session strategy using JWTs #8640

Merged
merged 7 commits into from
Jun 19, 2023
Merged

Conversation

dcousens
Copy link
Member

This pull request adds an example for a jwtSessionStrategy, using the jsonwebtoken library.

This has been a popular request from a number of developers, and although this example will need to tailored to whatever purpose it is used for, this should demonstrate the principles of how this might work in a way that is less abstract than the sillySessionStrategy or some of the other custom-session-* examples.

dcousens and others added 2 commits June 19, 2023 10:28
Co-authored-by: Josh Calder <josh.calder@thinkmill.com.au>
@changeset-bot

This comment was marked as resolved.

@dcousens dcousens self-assigned this Jun 19, 2023
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 19, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d3e0aad:

Sandbox Source
@keystone-6/sandbox Configuration

@dcousens dcousens force-pushed the custom-session-jwt branch from c275f47 to 904e0cc Compare June 19, 2023 01:42
@dcousens dcousens force-pushed the custom-session-jwt branch from f6701f8 to d3e0aad Compare June 19, 2023 01:49
Copy link
Member

@borisno2 borisno2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one

@dcousens dcousens merged commit 0dc2865 into main Jun 19, 2023
@dcousens dcousens deleted the custom-session-jwt branch June 19, 2023 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants