@cfxlabsinc/b2b-services
    Preparing search index...
    CognitoSignInNext:
        | { step: "profile"
        | "create-passkey"
        | "no-workspace"
        | "done" }
        | {
            challenge: CognitoSignInChallenge;
            step: "second-factor" | "enroll-second-factor" | "new-password";
        }
        | {
            challenge: CognitoSignInChallenge;
            credentialRequestOptions: string;
            step: "passkey";
        }
        | { inviteId?: string; setsPassword?: true; step: "confirm-email" }
        | { identityProvider: string; step: "single-sign-on" }
        | { step: "credentials" }

    Where an action left the sign-in. The first four mean signed in, the session cookie set.

    Type Declaration

    • { step: "profile" | "create-passkey" | "no-workspace" | "done" }
    • {
          challenge: CognitoSignInChallenge;
          step: "second-factor" | "enroll-second-factor" | "new-password";
      }
    • {
          challenge: CognitoSignInChallenge;
          credentialRequestOptions: string;
          step: "passkey";
      }
      • challenge: CognitoSignInChallenge
      • credentialRequestOptions: string

        WebAuthn PublicKeyCredentialRequestOptionsJSON, as Cognito sent it.

      • step: "passkey"
    • { inviteId?: string; setsPassword?: true; step: "confirm-email" }
      • OptionalinviteId?: string
      • OptionalsetsPassword?: true

        The code sets the password sign-up chose, so confirming sends it back.

      • step: "confirm-email"
    • { identityProvider: string; step: "single-sign-on" }

      The address's domain signs in through its own IdP, as the pool names it; nothing else is tried.

    • { step: "credentials" }

      Signed up and confirmed, but Cognito gave no session: log in with the password.