fix(auth): prevent redirect loops during auth callback processing in AuthProvider
This commit is contained in:
@@ -108,6 +108,9 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||||||
// * If we are on onboarding, skip check
|
// * If we are on onboarding, skip check
|
||||||
if (pathname?.startsWith('/onboarding')) return
|
if (pathname?.startsWith('/onboarding')) return
|
||||||
|
|
||||||
|
// * If we are processing auth callback, skip check to avoid redirect loops
|
||||||
|
if (pathname?.startsWith('/auth/callback')) return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const organizations = await getUserOrganizations()
|
const organizations = await getUserOrganizations()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user