Update [...nextauth].ts

This commit is contained in:
Steve Ruiz 2021-09-08 11:39:22 +01:00
parent 7bba32aba2
commit 2a799ade6e

View file

@ -18,7 +18,7 @@ export default function Auth(
async redirect(url, baseUrl) {
return baseUrl
},
async signIn(user, account, profile: any) {
async signIn(user, account, profile: { login?: string }) {
const canLogin = await isSponsoringMe(profile?.login)
if (canLogin) {