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,
encoded: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.
0 Replies