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

feat: adds JWT example #1000

Merged
merged 2 commits into from
Dec 6, 2024
Merged

feat: adds JWT example #1000

merged 2 commits into from
Dec 6, 2024

Conversation

shajanjp
Copy link
Contributor

@shajanjp shajanjp commented Oct 13, 2024

Adds a new example demonstrating how to create and verify JSON Web Tokens (JWT) using the jose library in Deno. The example includes two main functions: createJWT for generating JWTs and verifyJWT for verifying them.

@fwqaaq
Copy link
Contributor

fwqaaq commented Oct 24, 2024

I don't think this is necessary - this should be left to the library's author to handle.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

We discussed about including the examples that use 3rd party libraries and we think it's fine as long as the 3rd party lib is established one in the category.

/x/jose seems well used. Also it supports Deno well (Their CI runs test cases in Deno).

I think it's reasonable to include this example in our docs.

@kt3k kt3k merged commit 6463b02 into denoland:main Dec 6, 2024
2 checks passed
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.

3 participants