attractgroup / social-auther
There is no license information available for the latest version (dev-master) of this package.
Auth in social
dev-master
2016-07-25 14:19 UTC
Requires
- laravel/framework: >=4.2.1
This package is not auto-updated.
Last update: 2025-02-01 20:10:16 UTC
README
#using
$redirect_uri = 'http://website.com/verity'; $auther = new SocialAuther(['vk', 'facebook'], $redirect_uri);
//Auth links
$links = $auther->getAuthUrls();
//If isset $_GET['code']
if ($auther->authenticate()) {
$data = [
'token' => $token,
'name' => $auther->getName(),
'email' => $auther->getEmail(),
];
}