Any clear guide on how to do Google sign-in with Lock for Android

Hi @tyf, so to clarify, the sample code you linked should be followed if I want to do a sign-in with Google? I saw this post in this forum that uses WebAuthProvider as well. But I also saw another post here in this forum saying native Google sign-in is not supported. Can you clarify what this means?

edit: I think I understand what is being meant by “native Google sign-in is not supported”–it just means that Google sign-in via embedded login (presumably with loginWithNativeSocialToken) is still not supported.

So now I tried tinkering with the sample repo and used our existing app’s client ID and domain (in development environment, of course). And specified that I want to redirect to Google sign-in via withConnection("google-oauth2"):

WebAuthProvider.login(account)
            .withConnection("google-oauth2")
           // ...

and sure enough a browser opens that redirects to Google, but I am greeted with an error 400: redirect_url_mismatch. The error seems to indicate that we need to add a redirect URI somewhere in the Google Cloud Console. Am I in the right direction?

Edit: I will just open another topic for my questions regarding WebAuthProvider. Will be marking @tyf 's answer as the solution.