getCurrentUser static method
get current logged in user's profile.
Implementation
static Future<AuthResult> getCurrentUser() async {
final Result result = await get('/api/v2/users/me');
AuthResult authResult = AuthResult(result);
authResult.user = await createUser(result);
return authResult;
}