Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Validating supabase JWT token locally (without making a request to their API) [solved] - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
1 reply
.hatulapro
Validating supabase JWT token locally (without making a request to their API) [solved]
I have a nextjs api handler that calls this to validate the user
(and then makes a DB request using user
.id
)
:
const { user } = await supabase.auth.api.getUserByCookie(req);
const { user } = await supabase.auth.api.getUserByCookie(req);
The issue is it takes about 600ms for that to run
, since it makes a request to supabase
. Is there a way to validate the cookie locally
?
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Twitch API - Request bearer token on every request?
TTC
Theo's Typesafe Cult / questions
4y ago
Not able to get the jwt token through cookies
TTC
Theo's Typesafe Cult / questions
3y ago
Why not to use only 1 token in JWT?
TTC
Theo's Typesafe Cult / questions
3y ago
Storing JWT refresh token in httpOnly cookie
TTC
Theo's Typesafe Cult / questions
3y ago