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 and Refresh token not being cached #10

Open
PetervdPerk opened this issue Jul 11, 2019 · 0 comments
Open

Access token and Refresh token not being cached #10

PetervdPerk opened this issue Jul 11, 2019 · 0 comments

Comments

@PetervdPerk
Copy link

The authentication token does not get cached therefore each new session requires a new authentication. I'm not sure whether the API Gateway of DHL parcel has a limit of authentications per hour, but I suppose sending a lot of new authentication requests is not a feasible solution.

AuthMiddleware.php uses undefined variables called $accessTokenCache and $refreshTokenCache. I suppose we can just cache both the access and refresh tokens and recreate them when they're expired.

Any reason why these prototypes exist yet the caching implementation is not there? Is there more to it? Is it unstable?

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