mineos-market-client
    Preparing search index...

    Interface Auth

    interface Auth {
        login(params: LoginParams): Promise<UserCredentials>;
        register(params: RegisterParams): Promise<void>;
        changePassword(params: ChangePasswordParams): Promise<void>;
    }
    Index

    Methods

    • Register a new user.

      Parameters

      Returns Promise<void>

      await client.auth.register({
      userName: 'ECS',
      email: 'user@example.com',
      password: 'prettynewpassword'
      })
    • Change a user's password.

      Parameters

      Returns Promise<void>

      await client.auth.changePassword({
      email: 'user@example.com',
      currentPassword: 'old-password',
      newPassword: 'prettynewpassword'
      })