You can authenticate users by id or object by using:
So you can basically get the right user model from your database on your oauth callback and simply log him in.
Thank you for your response. But im trying to login the user with specific column name 'authid'. My columns are
id | authid | name | avatar
$user = User::where('authid', '=', $authId)->first(); Auth::login($user);
That should do the trick.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us