'Passing data to GetExternalLoginInfoAsync from ReactNative

In Asp.net Core Identity, it allow to login with Facebook/Google.

On browser, after Facebook/Google login success it callback to my backend, it's the OnGetCallBackAsync. To get authenticated user data we call GetExternalLoginInfoAsync() enter image description here

But. I'm writing a Mobile version of my website. It also have login with Facebook/Google. After login i recevie a access_token. I then that access_token to my OnGetCallBackAsync(), but the GetExternalLoginInfoAsync() is null.

I thinks the GetExternalLoginInfoAsync() not see my access_token, it may read that token not from request body.

=> How do i send it to the OnGetCallBackAsync to make GetExternalLoginInfoAsync() return user data like when I login on Browser ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source