Update redirect url

This commit is contained in:
Steve Ruiz 2021-06-28 10:47:12 +01:00
parent 724d44b744
commit 2cfeea0449

View file

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