© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
jwt token, localStorage undefined - Better Auth
BA
Better Auth
•
15mo 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
Recent Announcements
Similar Threads
Getting the full JWT token
BA
Better Auth / help
12mo ago
Getting users' organization details in JWT token
BA
Better Auth / help
12mo ago
How to grab `set-jwt-token` on sign-in?
BA
Better Auth / help
10mo ago
better auth `sendVerificationEmail` jwt token detected as spam by gmail
BA
Better Auth / help
6mo ago