Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
jwt token, localStorage undefined - Better Auth
BA
Better Auth
•
14mo ago
•
1 reply
stan trees
jwt token, localStorage undefined
how can i protect my flask backend using better
-auth jwt
?
im following this currently
:
https://www.better-auth.com/docs/plugins/bearer
and im getting
localStorage is undefined
localStorage is undefined
in the auth section for authClient
. but even past this
, i
'm unsure of the workflow of how to go from this to protecting api routes
(not for flask specifically but in general
)
Bearer Token Authentication | Better Auth
Authenticate API requests using Bearer tokens instead of browser cookies
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Getting the full JWT token
BA
Better Auth / help
10mo ago
Getting users' organization details in JWT token
BA
Better Auth / help
10mo ago
How to grab `set-jwt-token` on sign-in?
BA
Better Auth / help
8mo ago
better auth `sendVerificationEmail` jwt token detected as spam by gmail
BA
Better Auth / help
4mo ago