wip
This commit is contained in:
@@ -57,10 +57,8 @@ export function AuthProvider({ initialSession = null, children }: AuthProviderPr
|
|||||||
}, [fetchSession]);
|
}, [fetchSession]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (initialSession) return;
|
|
||||||
|
|
||||||
fetchSession();
|
fetchSession();
|
||||||
}, [initialSession, fetchSession]);
|
}, [fetchSession]);
|
||||||
|
|
||||||
const login = useCallback(
|
const login = useCallback(
|
||||||
(returnTo?: string) => {
|
(returnTo?: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user