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

How to detect when access token has expired? #8

Open
Whip opened this issue Nov 14, 2019 · 1 comment
Open

How to detect when access token has expired? #8

Whip opened this issue Nov 14, 2019 · 1 comment

Comments

@Whip
Copy link

Whip commented Nov 14, 2019

I want to send an email when the access token expires. I see there's a method in kiteconnect.php setSessionExpiryHook but I'm not sure how to use that. Can you post an example?

@VarunAgw
Copy link

Too late to answer, but it expires every morning. Alternatively, you can just send get profile request every 5 minutes. If it fails, it means the token is expired.

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