Share via

Xamarin.Auth Google

2021-01-25T11:57:28.76+00:00

Hello. I am using Xamarin.Auth library to authorize via Google in android app. When I click on my account, the redirect does not work. What could be the reason? I recorded a video of this problem
Download the project

Developer technologies | .NET | Xamarin
0 comments No comments

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,971 Reputation points
    2021-01-25T14:24:27.627+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    The Xamarin.Auth library has not been updated for a long time. For the authentication in Xamarin.Forms, try using the Essentials.WebAuthenticator library.

       var authResult = await WebAuthenticator.AuthenticateAsync(  
               new Uri(Authorization URL ),  
               new Uri(Redirect URI);  
       var accessToken = authResult?.AccessToken;  
    

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.