Class AuthenticationApi

API for user authentication.

Constructors

Methods

  • Create a new user.

    Parameters

    • formData: FormData

      The form data for the new user.

    Returns Promise<any>

    A promise that resolves to the response.

  • Get the current user.

    Parameters

    • token: string

      The authorization token.

    Returns Promise<any>

    A promise that resolves to the current user.

  • Get the current user's credentials.

    Parameters

    • token: string

      The authorization token.

    Returns Promise<any>

    A promise that resolves to the user's credentials.

  • Get the token for the user.

    Parameters

    • email: string

      The user's email.

    • password: string

      The user's password.

    Returns Promise<any>

    A promise that resolves to the user's token.