-
Good morning! I am updating my next auth in preparation for the 4.0 release and my previously working Credentials provider has an issue with the the authorize callback. I receive a "Types of parameters 'credentials' and 'credentials' are incompatible. Type 'Record<never, string>' is missing the following properties from type '{ username: string; password: string; }': username, password". "The expected type comes from property 'authorize' which is declared here on type 'Partial<CredentialsConfig<{}>>'" I see that the providers: [
// https://next-auth.js.org/configuration/providers
CredentialsProvider({
id: "login",
name: "Login",
credentials: {
username: {},
password: {},
},
authorize: async (credentials: { username: string; password: string }) => {
const DATA = { username: credentials.username, password: credentials.password };
// Login logic...
},
}),
], |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Discussed in #2677 |
Beta Was this translation helpful? Give feedback.
Discussed in #2677