Have getUser return early (not make a network request) when there is no session token #23526
Closed
AlexDWu
started this conversation in
Contribute to Supabase
Replies: 1 comment
-
Oh! I see this is already in master |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Supabase docs say to use getUser in NextJS middleware, but I notice that is a network request to verify the User session for every request in the NextJS app even when there is no session token. Seems like we can optimize things a bit by not making that network request when there is no session token. maybe have
getUser
returnBeta Was this translation helpful? Give feedback.
All reactions