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

how to exec my own middleware before build-in jwt? #4098

Open
lonelyJOJO-s opened this issue Apr 20, 2024 · 1 comment
Open

how to exec my own middleware before build-in jwt? #4098

lonelyJOJO-s opened this issue Apr 20, 2024 · 1 comment

Comments

@lonelyJOJO-s
Copy link

I need to use my own middleware before jwt certification, how can i do that?

@LeeSeika
Copy link

LeeSeika commented Apr 26, 2024

Maybe this is not available in go-zero. Let's check source code in engine.go

image

Go-zero always appends the authHandler before appending the user-defined middlewares.

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

No branches or pull requests

2 participants