clean routes
This commit is contained in:
@@ -63,8 +63,8 @@ export function AuthProvider({ initialSession = null, children }: AuthProviderPr
|
||||
}
|
||||
|
||||
const target = search.toString()
|
||||
? `/auth/iracing?${search.toString()}`
|
||||
: '/auth/iracing';
|
||||
? `/auth/login?${search.toString()}`
|
||||
: '/auth/login';
|
||||
|
||||
router.push(target);
|
||||
},
|
||||
@@ -103,4 +103,4 @@ export function useAuth(): AuthContextValue {
|
||||
throw new Error('useAuth must be used within an AuthProvider');
|
||||
}
|
||||
return ctx;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user