PHP Classes

ResetAccessToken - How do you use it?

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  ResetAccessToken - How do you use it?  >  (Un) Subscribe thread alerts  
Subject:ResetAccessToken - How do you use it?
Summary:ResetAccessToken - How do you use it?
Messages:3
Author:Michael DeMutis
Date:2013-02-25 17:33:44
Update:2013-02-25 22:10:21
 

  1. ResetAccessToken - How do you use it?   Reply   Report abuse  
Picture of Michael DeMutis Michael DeMutis - 2013-02-25 17:33:44
I'm getting an error about my Auth key no longer being valid. I know why this is happening.

Could you give me some advice on how to call the ResetAccessToken() function?

I called it below the error message but that doesn't seem to do anything.

How do I force it to re-ask for authorization?

  2. Re: ResetAccessToken - How do you use it?   Reply   Report abuse  
Picture of Michael DeMutis Michael DeMutis - 2013-02-25 17:34:29 - In reply to message 1 from Michael DeMutis
This was for Linked'In thanks.

  3. Re: ResetAccessToken - How do you use it?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-02-25 22:10:21 - In reply to message 1 from Michael DeMutis
ResetAccessToken is for your application to "forget" a previously obtained token, so you can restart the authorization process.

The default implementation just clears session variables on which tokens are stored. However, if you extended the class to implement your own token storage functions, it should do something consistent with that token storage method.