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

Access Token caching #15

Open
AV4TAr opened this issue Apr 29, 2015 · 1 comment
Open

Access Token caching #15

AV4TAr opened this issue Apr 29, 2015 · 1 comment

Comments

@AV4TAr
Copy link

AV4TAr commented Apr 29, 2015

Hi guys, is there a way to cache the access token, so that It does not need to get it on every request?

@pjcdawkins
Copy link
Contributor

It's not directly part of this library, at the moment, but yes you can and should save the access token (and ideally a refresh token) for later re-use.

I am using a mobile right now so I can't easily give an example but here's a link to an implementation:

https://github.com/platformsh/platformsh-client-php/blob/development/src/Connection/Connector.php

It should be possible to generalise this I guess, although I imagine there are many different ways in which people will want to store tokens depending on the use case.

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

2 participants