A Pro subscription is required to watch this lesson.

In this Larabit, I'll demonstrate from scratch how to authorize an API using a combination of Laravel's Sanctum and Socialite packages. This is a great use case for SPAs or mobile apps whose backends are powered by a Laravel API, and who want to give their users the ability to sign in using social networks or other third-party sites.

Setup SocialiteGenerate Auth TokensAuthenticating via Bearer Token

Would you like to hear from Laracasts by email occasionally?