Sanity Library Reference Docs
    Preparing search index...

    Interface ClientState

    States tracked by the client store

    interface ClientState {
        auth?: Observable<Promise<Auth>>;
        authMethod?: "localstorage" | "cookie";
        clients: { [key: string]: SanityClient$1 | undefined };
        token: string | null;
    }
    Index

    Properties

    auth?: Observable<Promise<Auth>>

    Credential stream shared by every client in an OAuth app, which has no token here.

    authMethod?: "localstorage" | "cookie"
    clients: { [key: string]: SanityClient$1 | undefined }
    token: string | null