@creator.co/module-identity-client - v1.1.11
    Preparing search index...

    Represents a Registration class that handles user registration and authentication.

    Index

    Constructors

    Properties

    isAutheticating: boolean

    A boolean flag indicating whether the user is currently authenticating.

    Methods

    • Confirms user registration and logs the user in using the provided email, hash, and reCAPTCHA token.

      Parameters

      • email: string

        The email of the user to confirm registration and login.

      • hash: string

        The hash value for registration confirmation.

      • recaptchaToken: string

        The reCAPTCHA token for validation.

      Returns Promise<any>

      A promise that resolves with an ErrorResponse object if there is an error, or undefined if successful.

    • Registers a user for the service.

      Parameters

      • inputOrForceRedirect: boolean | RegistrationInput

        Either a boolean value or a RegistrationInput object.

      • OptionalcallbackURL: string

        The URL to redirect to after registration.

      • OptionaloptContext: any

        Additional context information.

      Returns Promise<false | UserCreateResponse | ErrorResponse>

      A promise that resolves to the registration response.