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

Repeated calls to /token #1

Open
yespbs opened this issue Oct 16, 2017 · 0 comments
Open

Repeated calls to /token #1

yespbs opened this issue Oct 16, 2017 · 0 comments

Comments

@yespbs
Copy link

yespbs commented Oct 16, 2017

This api client is calling getToken() on every server call which will result in violation of usage terms as per authorization scheme https://docs.hyphenate.io/docs/server-overview#section-token-expiration when used in a repeat call over a period of time ( 7 days for example ) or within a loop.

Please update the code to use a storage package or similar to store the access_token in storage till it expires, A storage package can be an abstraction layer for SESSION, COOKIE, FILE, DATABASE or a CACHE like memcached, redis etc

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