How to get session during api call? #1971
-
Question 💬Hi everyone, I've googled it and haven't found anything similar so I'm posting it here. I have API endpoint I consume on the client side. /page/api/job.ts
|
Beta Was this translation helpful? Give feedback.
Answered by
balazsorban44
May 11, 2021
Replies: 1 comment
-
Have you tried the docs? 😉 https://next-auth.js.org/tutorials/securing-pages-and-api-routes#securing-api-routes |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
balazsorban44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried the docs? 😉
https://next-auth.js.org/tutorials/securing-pages-and-api-routes#securing-api-routes