Google+: Get access_token for already authorized accounts through PHP client library -
I'm implementing the hybrid sign in flow. Logged in with Google+ What I want to achieve:
A user has authorized the app, next time he comes back to the website, I want to log him in automatically. In the hybrid flow, Google automatically logs on to the user and displays a welcome message (JavaScript SDK) with access tokens coming back. But this process has to be sent for an Ajax call to the Gogol API. I want to make this call via Google's backend using PHP's Client Library. Since the app has already been authorized, therefore it should be easily returned access tokens when using JavaScript SDK. But I am not able to understand how to use the client library. Can somebody help me out? More Explained HTML access_type: set 'offline' in your call parameters, then < Using a new code> refresh_token is required to get a new token, which is provided once at the time of first authorization. You must store that
refresh_token in your database and enter the user's already completed token ID or log in anyway and make other calls for a valid access token.
Comments
Post a Comment