How would it work when using Socialite?
Closed this issue · 4 comments
Hey, excellent project. How would this work when I am using OAuth 2 like Facebook with Socialite?
Hey, thank you for your words and thanks for trying out Zemke/starter-laravel-angular. Since this is an AngularJS application, AngularJS takes care of authentication. Laravel is only the endpoint. So you would probably use an AngularJS social login solution (there are many) rather than Laravel’s Socialite.
I think I can just use Socialite? What's stopping me from doing that
effectively.
You can also use Socialite, nothing does effectively make it impossible. There is a login method in the UserController
one the Laravel side and there is a UserService
on the Angular side mainly responsible for auth. Also check the Laravel router in correspondence. In combination with the Laravel docs on Socialite you can create a nice auth system with Socialite, too.
Maybe once I will also build it into the project. If you do it, I would be happy about a pull request.
Neat :) I'll send a pull when I'm done