MY QUALITY - First iteration
This commit is contained in:
@@ -23,7 +23,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
|
||||
const u = await authenticateCredential({
|
||||
email,
|
||||
secret: password,
|
||||
allowedRoles: ['ADMIN', 'SUPERVISOR'],
|
||||
allowedRoles: ['ADMIN', 'SUPERVISOR', 'QUALITY'],
|
||||
});
|
||||
if (!u) return null;
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user