fix: missing useeffect in auth provider (#285)

This commit is contained in:
Dani Akash
2026-01-30 23:47:43 +05:30
committed by GitHub
parent 8639f2b20a
commit b262962c08

View File

@@ -1,4 +1,5 @@
import type { FC, PropsWithChildren } from 'react'
import { useEffect } from 'react'
import { useSession } from './auth-client'
import { useSessionInfo } from './sessionStorage'
@@ -6,6 +7,7 @@ export const AuthProvider: FC<PropsWithChildren> = ({ children }) => {
const { data } = useSession()
const { updateSessionInfo } = useSessionInfo()
// biome-ignore lint/correctness/useExhaustiveDependencies: only re-run when data changes
useEffect(() => {
updateSessionInfo({
session: data?.session,