Esempio n. 1
0
 /// <summary>
 /// Authenticates user based on his email and password
 /// </summary>
 /// <param name="email"></param>
 /// <param name="pass"></param>
 /// <returns></returns>
 public static async Task <AuthOutput> LetMeInAsync(string email, string pass)
 {
     return(AuthOutput.FromTokenResponse(
                await AuthenticateUserAsync(email, pass)
                ));
 }
Esempio n. 2
0
 /// <summary>
 /// Refreshes auth tokens - access token + refresh token
 /// </summary>
 /// <param name="refreshToken"></param>
 /// <returns></returns>
 public static async Task <AuthOutput> RefreshTokensAsync(string refreshToken)
 {
     return(AuthOutput.FromTokenResponse(
                await RequestRefreshTokenAsync(refreshToken)
                ));
 }