Closed TomEverson closed 2 years ago
Edit your api route like this
CredentialProvider({
// Here, we are simply checking if the email matches and allow the user to login
authorize: async (properties) => {
if (properties.email == "osadavidath@gmail.com") {
return properties;
}
//if conditional fail, failed to signin
return null;
},
}),
change with your own conditional
Frontend ( Svelte Code )
API route