This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Manual Authentication
Brandon McFarlin edited this page Feb 9, 2021
·
19 revisions
A refresh token is a long life token given to an application during OAuth. To get a refresh token, follow these steps:
- If the plugin is installed globally, run
homebridge-nest-cam login
, otherwise, ensure that you are in the plugin's root directory and runnode dist/login.js
. - Follow the onscreen instructions.
- Copy the refresh token to your
config.json
.
Notes:
- Field testers, please use the
-ft
flag to be redirected to the correct site.
The values of "issueToken"
and "cookies"
are specific to your Google Account. To get them, follow these steps (only needs to be done once, as long as you stay logged into your Google Account).
- Open a Chrome browser tab in Incognito Mode (or clear your cache).
- Open Developer Tools (View/Developer/Developer Tools).
- Click on 'Network' tab. Make sure 'Preserve Log' is checked.
- In the 'Filter' box, enter
issue
. - Go to
home.nest.com
, and click 'Sign in with Google'. Log into your account. - Click on the last
iframerpc
call. - In the Headers tab, under General, copy the entire
Request URL
(beginning withhttps://accounts.google.com
, ending withnest.com
). This is your"issueToken"
inconfig.json
. - In the Headers tab, under Request Headers, copy the entire
cookie
(include the whole string which is several lines long and has many field/value pairs). This is your"cookies"
inconfig.json
. - Do not log out of
home.nest.com
, as this will invalidate your credentials. Just close the browser tab.
Notes:
- If you are using this guide to authenticate homebridge-nest as well, your
"apiKey"
will be the same as the previous value. It should never change. Simply copy the new"issueToken"
and"cookies"
into the old ones and leave"apiKey"
alone, and it should work.