2
0

📦 Update packages

This commit is contained in:
Baptiste Arnaud
2022-10-16 10:54:21 +02:00
parent f9a8e78904
commit ff52a676f6
12 changed files with 1446 additions and 1757 deletions

View File

@ -128,6 +128,7 @@ const handler = (req: NextApiRequest, res: NextApiResponse) => {
}
},
signIn: async ({ account }) => {
if (!account) return false
const requiredGroups = getRequiredGroups(account.provider)
if (requiredGroups.length > 0) {
const userGroups = await getUserGroups(account)