Hello fellow developers,
I have a Laravel backend where I want to implement Socialite (mainly for facebook and google, possibly others). And I have a VueJS SPA. I'm not really sure on the best way to make the connection between them both. My main issue I think, lies when the provider goes to the callback. I don't think there is a simple way to then return my generated JWT token back to the SPA. Some possible solutions I've seen/thought of so far, but not sure which one is "better" (subjective of course) are:
postMessageto the SPA to send the JWT token.
auth0library in the SPA.
Anyone have any thoughts on the matter?