1
0
Fork 0
mirror of synced 2024-10-06 04:54:52 +13:00

Merge pull request #10140 from Budibase/fix/gsheet-logout

GSheet logout possible fix
This commit is contained in:
Michael Drury 2023-03-28 15:47:34 +01:00 committed by GitHub
commit 08f07d5e3a

View file

@ -41,13 +41,13 @@
return
}
if (user.tenantId !== urlTenantId) {
if (urlTenantId && user.tenantId !== urlTenantId) {
// user should not be here - play it safe and log them out
try {
await auth.logout()
await auth.setOrganisation(null)
} catch (error) {
// Swallow error and do nothing
console.error("Tenant mis-match, logout.")
}
}
} else {