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

Can you expose ClaimsData.encode to allow for user defined jwts? #207

Open
madvagabond opened this issue Aug 25, 2023 · 1 comment
Open
Labels
proposal Enhancement idea or proposal

Comments

@madvagabond
Copy link

What motivated this proposal?

The title says it all.

What is the proposed change?

The title says it all.

Who benefits from this change?

End users who want to integrate things with nkeys.

What alternatives have you evaluated?

No response

@madvagabond madvagabond added the proposal Enhancement idea or proposal label Aug 25, 2023
@aricart
Copy link
Member

aricart commented Aug 25, 2023

The encode part is sort of what gives type safety in the library. Would it be possible for you to use a GenericClaims? In that type you can set whatever you want for the nats section of the JWT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

2 participants