Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expired (but brand new) Access tokens #53

Open
Atams opened this issue Jan 16, 2015 · 0 comments
Open

Expired (but brand new) Access tokens #53

Atams opened this issue Jan 16, 2015 · 0 comments

Comments

@Atams
Copy link

Atams commented Jan 16, 2015

I guess I more leaving this here in case anyone else runs into this problem.

I can't lay my finger on exactly what is causing the problem I'm having, but here is what happens.

From the command line I have the whole thing working just fine, I re-implemented everything as a web call from PHP and the access tokens are expired as soon as I make a call for them.

I'm not sure if I missed part of the set up, or something else, but my solution was to

  1. Edit the database and set expires in the oauth.oauth_access_tokens table to a varchar (20) (anything over 10 should work).
  2. Edit Pdo.php and comment out the "$expires = date('Y-m-d H:i:s', $expires);" lines, and comment out the line "$token['expires'] = strtotime($token['expires']);".

This removes all the unnecessary (from what I saw, but maybe I missed something) time stamp to time string conversions, and solves my problem.

Hope this helps anyone else that had this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant