-
Notifications
You must be signed in to change notification settings - Fork 48
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
Consistent Invalid grant, aprox every week #65
Comments
Hi @SupaCoder , It sounds like you've done everything correctly with setting up the module. The issue with the expired token is a common one in projects that utilize Google authentication. Typically, when your app is in "test" mode in the Google Cloud Platform, tokens have a limited lifespan and tend to expire every seven days or so. To mitigate this problem, you need to change the status of your app from "testing" to "production" by publishing it. Here's how you can do that:
Once your app is published, the token's lifespan should be significantly extended, which will lessen the frequency of these disruptions needing a new authorization. Best regards, |
Doesn't this make your calendar public and accessible to anyone with a Google account? |
Hi @unknownuser17769, "Pubishing App" should only affect your google engine app, not your calendar. Since you're the only one authenticating to your CGP app from the MMM-GooogleCalendar instance, you're calendar info stays private, and visible only throuhg your MagicMirror instance. If anybody else were to attempt to authenticate within your app, they would need access to your cgp app, MagicMirror instance, and calendar settings. However, in this case, your data remains private since you're the only one authenticating against your own app, and the OAuth credentials are used solely within your instance of the plugin. As a result, there's no public exposure to worry about. |
Have the module installed and configured, works as it should for about a week, after which it shows invalid grant, the only fix i have found so far is to stop MM, delete tocken, run auth script, start MM back up.
Because this is running on an older Pi2 this process can take upwards of 10min each time as i have to wait for the google auth pages to load.
Is this an issue with the module or something in my settings?
The text was updated successfully, but these errors were encountered: