Writing auth middleware #1510
Answered
by
davidpdrsn
mohammadjavad948
asked this question in
Q&A
-
Hi i want to write an auth middleware. there is an example in docs but my question is how can i pass user info to route handler? for example my auth middleware looks at database and finds the user then i want to access user info on route handler. how can i do it? |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Nov 7, 2022
Replies: 1 comment
-
Insert your data into a request extension and extract that in the handler. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mohammadjavad948
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Insert your data into a request extension and extract that in the handler.