Update [...nextauth].ts
This commit is contained in:
parent
7bba32aba2
commit
2a799ade6e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue