VexSessionState
Defined in: packages/react/src/auth/VexSessionAdapterContext.tsx:13
The reactive session shape useCanAccessAdminPanel needs on a public page,
where no VexAuthProvider is mounted (the server-resolved { user, organization } that provider seeds only exists inside /admin).
Extends
Section titled “Extends”Properties
Section titled “Properties”isPending
Section titled “isPending”isPending:
boolean
Defined in: packages/react/src/auth/VexSessionAdapterContext.tsx:20
Whether the underlying auth client’s session is still resolving — e.g.
Better Auth’s authClient.useSession().isPending, true on the very
first client render before the session store settles. While pending,
user/organization are not yet meaningful either way.
organization?
Section titled “organization?”
optionalorganization?:Record<string,unknown>
Defined in: packages/core/src/db/types.ts:697
Passed as hasPermission’s organization. Shape is caller-defined; omit
when the access config has no orgCollectionSlug.
Inherited from
Section titled “Inherited from”VexApiAuth.organization
user:
Record<string,unknown> |null
Defined in: packages/core/src/db/types.ts:692
Passed as hasPermission’s user — shape is caller-defined. Must include
whatever field access.userRolesField names (a role string or string[])
for role resolution to succeed; a user object without it resolves to an
empty role list and denies every check.
Inherited from
Section titled “Inherited from”VexApiAuth.user