Sanity Library Reference Docs
    Preparing search index...

    Type Alias LoginComponentPropsBeta

    LoginComponentProps:
        | {
            basePath: string;
            onChooseAnotherWorkspace?: () => void;
            projectId: string;
            redirectPath?: string;
        }
        | {
            basePath?: string;
            onChooseAnotherWorkspace?: () => void;
            projectId: string;
            redirectPath: string;
        }

    Type declaration

    • {
          basePath: string;
          onChooseAnotherWorkspace?: () => void;
          projectId: string;
          redirectPath?: string;
      }
      • basePath: string

        use redirectPath instead

      • OptionalonChooseAnotherWorkspace?: () => void

        Invoked when the user chooses to switch workspaces from the login screen (e.g. when the active workspace has no usable login providers). Only provided when more than one workspace is available to switch to.

      • projectId: string
      • OptionalredirectPath?: string
    • {
          basePath?: string;
          onChooseAnotherWorkspace?: () => void;
          projectId: string;
          redirectPath: string;
      }
      • OptionalbasePath?: string

        use redirectPath instead

      • OptionalonChooseAnotherWorkspace?: () => void

        Invoked when the user chooses to switch workspaces from the login screen (e.g. when the active workspace has no usable login providers). Only provided when more than one workspace is available to switch to.

      • projectId: string
      • redirectPath: string