@orangecheck/auth-client / useOptionalOcSession
Function: useOptionalOcSession()
function useOptionalOcSession(): OcSessionState | null;
Defined in: src/provider.tsx:161
Non-throwing variant — returns null if called outside a provider.
Useful for libraries that want to read the session if it exists but
shouldn't crash on apps that haven't opted in.
Returns
OcSessionState | null