Manta Developers
GitHub
Menu

@manta-eu/react/providers/AuthContext

Reference for @manta-eu/react/providers/AuthContext as it is on main.

Type Aliases

AuthContextValue

AuthContextValue = Pick<UseAuthResult, "datastore" | "datastores" | "logout" | "isOperator" | "canManageTeam" | "canManageCustomApps" | "orgRoles" | "canManageIntegrations" | "canManageStreams" | "canManageSharedMemories" | "canSwitchDatastore" | "allowedModels"> & object

Type Declaration

canDisconnectCustomApps?

optional canDisconnectCustomApps?: boolean

hasProfilePage?

optional hasProfilePage?: boolean

inOrganization?

optional inOrganization?: boolean

user

user: User

Variables

AuthContext

const AuthContext: Context<AuthContextValue | undefined>

Functions

useAuthContext()

useAuthContext(): AuthContextValue

Returns

AuthContextValue