potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
148 stars 17 forks source link

Curl error - invalid grant #159

Closed drax16 closed 6 months ago

drax16 commented 6 months ago

First and foremost, thank you to potmat and everyone who has worked on this project.

I've started from scratch several times, but once I get "close" to the end, I continuously get this error when trying to run the refreshToken command

"error": "invalid_grant", "error_description": "Bad Request"

Someone online suggested running it via the homebridge terminal, but no luck.

This is the command (without my info) for the sake of specificity

curl -L -X POST 'https://www.googleapis.com/oauth2/v4/token?client_id=oauth2-client-id&client_secret=oauth2-client-secret&code=authorization-code&grant_type=authorization_code&redirect_uri=https://www.google.com'