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

hertz-jwt , how to get token from request body? #564

Closed
annie-jpg opened this issue Jan 27, 2023 · 1 comment
Closed

hertz-jwt , how to get token from request body? #564

annie-jpg opened this issue Jan 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@annie-jpg
Copy link

Is your feature request related to a problem? Please describe.
Yes, if the front-end uses the multipart/form-data method to send the token, I cannot use the four methods of hertz-jwt to obtain the token. Should we add the method to obtain the token from the request body?

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When i want to get token from request body...

Describe the solution you'd like
Add the method to obtain the token, except header, query, cookie and param.

Describe alternatives you've considered
none.

Additional context
none.

@li-jin-gou
Copy link
Member

refer to hertz-contrib/jwt#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants