Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
I cant decode better auth session cookie. - Better Auth
BA
Better Auth
•
10mo ago
BornAgain
I cant decode better auth session cookie.
Here is the snippet
:
https://pastecode.dev/s/dcdiax2w
It
's golang middleware
, i am trying to decode my custom cookie with my secret
.
But the decoded user id is not correct
, here is the log
:
Authenticated user ID
: 0a4576bf33389e8c5af142006a6e6d28bb03507a4628f130
(
raw bytes
: 0a4576bf33389e8c5af142006a6e6d28bb03507a4628f130
,
e
n
c
o
d
e
d
:CkV2vzM4noxa8UIAam5tKLsDUHpGKPEw
)
PasteCode
Auth middleware - PasteCode.dev
PasteCode
.dev is a website where you can store any code online for quick sharing
. You can paste code and share code online for free
.
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Better Auth session/cookie not working in development
BA
Better Auth / help
2mo ago
How to decode a cookie
BA
Better Auth / help
10mo ago
session cookie name
BA
Better Auth / help
5mo ago
Better Auth Error Session data is too large to store in the cookie
BA
Better Auth / help
11mo ago