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

Confirming successful token refresh #49

Closed
yuvi100 opened this issue Feb 10, 2022 · 2 comments
Closed

Confirming successful token refresh #49

yuvi100 opened this issue Feb 10, 2022 · 2 comments

Comments

@yuvi100
Copy link

yuvi100 commented Feb 10, 2022

I've set up a cron job on my shared hosting - how do I confirm the token has refreshed?

Visting actions/craftagram/default/refresh-token returns 1.

When the cron job is run a file has been created on the shared host named refresh-token.1 that contains the same response 1.

@jsmrtn
Copy link
Owner

jsmrtn commented Feb 13, 2022

@yuvi100 You can check in /storage/logs/craftagram.log as to whether the refresh has succeeded or failed, as it logs out there when you run the refresh token.

As to your file being created, this is because when using wget in a cron you have to tell it to not output a file. See this StackOverflow post for an explanation, but speaking to your host would be the most suitable way to get your cron corrected.

@yuvi100
Copy link
Author

yuvi100 commented Feb 14, 2022

@joshua-martin perfect - can confirm it's all working. Appreciate the additional resource as well.

@yuvi100 yuvi100 closed this as completed Feb 14, 2022
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