How can i return User of different structure from authorize? #1599
-
In [...nextauth].ts, I've used credentials for signing in a client. after signing in, the But I want to return a custom As soon as I does this, typescript start complaining this --> The only way I could think of accomplishing this is by making changes in I also couldn't find any documentation or examples doing this, if found, weren't helpful or hard to understand.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I solved it by adding types.d.ts in my project. extends interface "User" the of module "next-auth"
example extends other interface
============= |
Beta Was this translation helpful? Give feedback.
I solved it by adding types.d.ts in my project.
extends interface "User" the of module "next-auth"
example extends other interface
=============
Would be cool to do something like this in next-auth :/