Replies: 2 comments 8 replies
-
Hi there! After looking into the code like you did, I successfully got it running with Ideally, one would pass a salt to I'm probably missing something, or it's all just WIP, fater all it says "under active development" on the box... |
Beta Was this translation helpful? Give feedback.
-
I think I have a similar problem decoding the token - could someone maybe have a look at my code and tell me what I'm doing wrong please? I posted my code here: #11811 |
Beta Was this translation helpful? Give feedback.
-
In the latest version of authjs changes were made regarding the JWToken extraction.
The
getToken
function now requires asalt
but I couldn't find any documentation regarding that.Looking at the source code it seems that the salt gets a default value so maybe it normally can be ignored and omitted by the user of the library and it should me marked as optional in the
GetTokenParams
interface.Nevertheless using the function in a SvelteKit context by calling
getToken({req: request})
doesn't work anymore for me, even though the request object should contain all relevant data and cookies can be parsed correctly from it.Is there anything I overlook?
Beta Was this translation helpful? Give feedback.
All reactions