Repository navigation
Replies: 1 comment 2 replies
|
The recommended way to use JWTs in Rodauth are to take the JWT from the |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey. 👋
Is there an easy way to generate the JWT access token for testing purposes? I was hunting around the Rodauth code looking for helper methods for testing purposes that would make it possible to quickly generate a JWT access token for the HTTP AUTHORIZATION header when making API requests but couldn't find what I needed.
Here's my Hanami + Rodauth configuration for context (truncated for brevity):
I'd like to write a request spec like this:
The straight forward approach would be to make an HTTP POST request with login credentials to obtain the
access_token. The other approach would be to manually build the JWT access token each time via a helper method. Mostly curious to see if I'm missing anything that might be provided by Rodauth?All reactions