{"action":"created","issue":{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/546","labels_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/546/comments","events_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/546/events","html_url":"https://github.com/lucadegasperi/oauth2-server-laravel/issues/546","id":105817051,"number":546,"title":"How to get Access Token & Refresh Token when use oauth2-server-laravel with laravel/socialite packages ","user":{"login":"mitulkoradiya","id":13043276,"avatar_url":"https://avatars.githubusercontent.com/u/13043276?v=3","gravatar_id":"","url":"https://api.github.com/users/mitulkoradiya","html_url":"https://github.com/mitulkoradiya","followers_url":"https://api.github.com/users/mitulkoradiya/followers","following_url":"https://api.github.com/users/mitulkoradiya/following{/other_user}","gists_url":"https://api.github.com/users/mitulkoradiya/gists{/gist_id}","starred_url":"https://api.github.com/users/mitulkoradiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitulkoradiya/subscriptions","organizations_url":"https://api.github.com/users/mitulkoradiya/orgs","repos_url":"https://api.github.com/users/mitulkoradiya/repos","events_url":"https://api.github.com/users/mitulkoradiya/events{/privacy}","received_events_url":"https://api.github.com/users/mitulkoradiya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/labels/support","name":"support","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-10T14:22:20Z","updated_at":"2015-09-13T16:04:07Z","closed_at":null,"body":"Hi,\r\nI use lucadegasperi/oauth2-server-laravel and [laravel/socialite](https://github.com/laravel/socialite) in laravel 5.1. both packages are working perfectly.\r\n\r\nMy question is when send request with username and password then we get the Access Token and Refresh Token. when perform the \"login with gmail\" then we get the data like \r\n\r\n`````\r\nUser {\r\n  +token: \"ya29.6gF4aWiWdy5dRgCa1FpYNq0GYaDhC7tMz_IhH5zh9f_GmF57bHQYX1UCLNa1twPdL0_rt_gMSaiTgg\"\r\n  +id: \"109964539548451036345\"\r\n  +nickname: null\r\n  +name: \"Abc Xyz\"\r\n  +email: \"abc@gmail.com\"\r\n  +avatar: \"https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAA/4252rscbv5M/photo.jpg?sz=50\"\r\n  +\"user\": array:15 [▶]\r\n}\r\n````` \r\nafter getting data we check the user exist with this email id if yes then update the info otherwise create the user. further how can login in our app or how to get the Access Token and Refresh token, then we use the protected-resource. \r\n\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/comments/139891173","html_url":"https://github.com/lucadegasperi/oauth2-server-laravel/issues/546#issuecomment-139891173","issue_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/546","id":139891173,"user":{"login":"vinkla","id":499192,"avatar_url":"https://avatars.githubusercontent.com/u/499192?v=3","gravatar_id":"","url":"https://api.github.com/users/vinkla","html_url":"https://github.com/vinkla","followers_url":"https://api.github.com/users/vinkla/followers","following_url":"https://api.github.com/users/vinkla/following{/other_user}","gists_url":"https://api.github.com/users/vinkla/gists{/gist_id}","starred_url":"https://api.github.com/users/vinkla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinkla/subscriptions","organizations_url":"https://api.github.com/users/vinkla/orgs","repos_url":"https://api.github.com/users/vinkla/repos","events_url":"https://api.github.com/users/vinkla/events{/privacy}","received_events_url":"https://api.github.com/users/vinkla/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T16:04:07Z","updated_at":"2015-09-13T16:04:07Z","body":"You'll have to create a custom Gmail grant which takes the token and id that you get from Gmail."}}