authenticate method

Future authenticate(
  1. String email,
  2. String code
)

Authenticates a user using an email and one-time code.

Implementation

Future authenticate(String email, String code) async {
  return post('auth.auth', {
    "email": email,
    "code": code,
    "client_id": clientId,
    "client_secret": clientSecret
  });
}