Inconsistent return values of signIn() and signOut() #11113
danielsavinoff
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Non-Goals
No response
Background
This is what it says in the NextAuthResult interface signOut and signIn should return with the option redirect false.
signOut()
signIn()
In the actual implementation of the functions signIn() returns the URL as expected but signOut() returns a response. It is extremely confusing. And is there at least one logical reason both return types are any?
Proposal
Stop the mess, use typescript and type variables, and don't write confusing comments.
Beta Was this translation helpful? Give feedback.
All reactions