Answer the question
In order to leave comments, you need to log in
I receive OAuth data from GitHub in Laravel, but what should I do next to make API authentication?
Here is the code:
app\Http\Controllers\Auth\LoginController.php
$user = Socialite::driver('github')->stateless()->user();
$token = $user->token;
dd(Socialite::driver('github')->userFromToken($token));
token
and an array with a bunch of other data about the user, like him login
url
email
, etc. users
- should I do it myself? Answer the question
In order to leave comments, you need to log in
should I do it myself?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question