Skip to content

Commit 9d42adf

Browse files
chore: properly set is signed in value when opening the app
1 parent 2dca878 commit 9d42adf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/logic/AuthLogic.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const AuthLogic: FC = () => {
1111
const bootstrap = async () => {
1212
// TODO: This should be moved to backend calls, in this bootstrap function we should fetch user info and not token
1313
const token = await getToken()
14-
setIsSignedIn(!!token)
14+
15+
setIsSignedIn(!!token?.accessToken)
1516
}
1617

1718
bootstrap()

0 commit comments

Comments
 (0)