ng2-ui-auth icon indicating copy to clipboard operation
ng2-ui-auth copied to clipboard

Facebook auth with Socialite

Open gultyayev opened this issue 6 years ago • 2 comments

Please explain to me how do I sing in using Facebook and Laravel Socialite. Socialite expects code to be provided to callback. Where do I get it?

Also I've noticed that ng2-ui-auth tries to access some page on my SPA /auth/facebook. I haven't specified it

gultyayev avatar Sep 07 '18 12:09 gultyayev

The code is sent in the json body of /auth/facebook under oauthData ({ ..., "oauthData": { "code": ,,, } })

ronzeidman avatar Sep 07 '18 18:09 ronzeidman

@ronzeidman How do I send code to my backend API so that I can authorize user using Socialite? I use subdomain for the API. Actually the problem is(at least I see it so) is that I cannot redirect my token to backend. There is no redirectUrl

gultyayev avatar Sep 07 '18 18:09 gultyayev