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

refresh token must be passed in or set as part of setaccesstoken #265

Open
umarzahid028 opened this issue Sep 25, 2023 · 2 comments
Open

Comments

@umarzahid028
Copy link

I've encountered a new issue right after authorizing Google. Firstly, I received the following error message:

"Refresh token must be passed in or set as part of setaccesstoken (view: /var/www/html/domain/resources/views/layouts/header.blade.php)."

To temporarily resolve this, I deleted the file located at "storage/app/gmail/tokens/gmail-json.json" and then re-authenticate. This allows the application to work again. However, after approximately one hour, the same problem recurs.

Could you please assist me with this issue? My application is currently live, and this problem is affecting its functionality.

@pappu687
Copy link

pappu687 commented Oct 8, 2023

I have the same issue @dacastro4 - do you have time to look at this ?

@umarzahid028
Copy link
Author

I identified the issue and resolved it. To generate the token successfully, make sure to include the GOOGLE_PROJECT_ID, like this:
LaravelGmail::setUserId("gmail-api-000964")->makeToken();

This worked correctly in my case, and I hope it works for you as well.

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