authenticate method
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
});
}