Decrypting token from cookie with .NET Core WebApi #3123
-
Hi! I'm trying to use the token provided by next-auth (4.0.0-beta.6) in our .NET Core WebApi but can't get it to work. Found this example that explains how to implement it: I even tried using only the jose-jwt decrypt function, but it always throws this exception:
Tried using the function like this:
The jwt config looks like this:
Can somebody please give me a hint what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
you aren't supposed to use the NextAuth token in third party. use the token provided by your provider. |
Beta Was this translation helpful? Give feedback.
you aren't supposed to use the NextAuth token in third party. use the token provided by your provider.