Sanity Library Reference Docs
    Preparing search index...

    Interface AuthStoreState

    interface AuthStoreState {
        authState: AuthState;
        dashboardContext?: DashboardContext;
        options: {
            apiHost: string | undefined;
            authMethod: AuthMethodOptions;
            callbackUrl: string | undefined;
            clientFactory: (config: ClientConfig) => SanityClient;
            customProviders:
                | AuthProvider[]
                | ((prev: AuthProvider[]) => AuthProvider[] | Promise<AuthProvider[]>)
                | undefined;
            initialLocationHref: string;
            loginUrl: string;
            providedToken: string | undefined;
            storageArea: Storage | undefined;
            storageKey: string;
        };
        providers?: AuthProvider[];
    }
    Index

    Properties

    authState: AuthState
    dashboardContext?: DashboardContext
    options: {
        apiHost: string | undefined;
        authMethod: AuthMethodOptions;
        callbackUrl: string | undefined;
        clientFactory: (config: ClientConfig) => SanityClient;
        customProviders:
            | AuthProvider[]
            | ((prev: AuthProvider[]) => AuthProvider[] | Promise<AuthProvider[]>)
            | undefined;
        initialLocationHref: string;
        loginUrl: string;
        providedToken: string | undefined;
        storageArea: Storage | undefined;
        storageKey: string;
    }
    providers?: AuthProvider[]