Closed selvikaruppanan closed 10 years ago
That's not how OAuth works... if you call the grant type, you will get a new token. You should be storing the other information on the client.
If you want an API call that gives you the existing token, you will want to create it yourself.
While try to access user credentials it will return like below, {"access_token":"405522da-bd9d-4193-882e-eade56f1c78a","token_type":"bearer","re fresh_token":"ea4f7aa7-d80f-43e6-b1f8-1599a170432b","expires_in":3599}
Always it returns new access_token and expires_in not getting changed at any time. Each time we try to access user credential it shows new token. But I need to receive the same token within that expire time also while hitting each time the expires_in time needs to get reduces.
How should I do this using OAuth2 server in php?
Please help me. Anything would be appreciated. Thank you!!