Get a user's credentials without setting the instance's token. Requires either username or email along with a password.
Object with required fields.
User's credentials.
MarketClient.login if you want to authenticate an instance.
await client.auth.login({ email: 'user@example.com', password: 'prettynewpassword' }) Copy
await client.auth.login({ email: 'user@example.com', password: 'prettynewpassword' })
Register a new user.
await client.auth.register({ userName: 'ECS', email: 'user@example.com', password: 'prettynewpassword'}) Copy
await client.auth.register({ userName: 'ECS', email: 'user@example.com', password: 'prettynewpassword'})
Change a user's password.
await client.auth.changePassword({ email: 'user@example.com', currentPassword: 'old-password', newPassword: 'prettynewpassword'}) Copy
await client.auth.changePassword({ email: 'user@example.com', currentPassword: 'old-password', newPassword: 'prettynewpassword'})
Get a user's credentials without setting the instance's token. Requires either username or email along with a password.