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

Why does getAccessCode check for an existing access code when an authorization code is specified? #38

Open
atomjack opened this issue Dec 11, 2017 · 0 comments

Comments

@atomjack
Copy link

I'm confused as to why the getAccessCode($authorization_code) method always has to return a previously existing access code if one exists. It seems to me that if you specify an authorization code, it should request a new access token using that code regardless of whether or not the API has had an access token set.

I'm saving my access token, but of course I will have to request a new one periodically before it expires. I'd like to be able to do this without having to worry about whether or not I can set the access token beforehand (I have another custom class that is using the LI API and it tells the api to use the access token it has saved as soon as it instantiates).

@atomjack atomjack changed the title Why does getAccessCode check for an existing access code? Why does getAccessCode check for an existing access code when an authorization code is specified? Dec 12, 2017
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