-
You need a
Client Id
. You can find these pieces of information by going to the Developer Console, clicking your project (if you don't have it create project here https://console.cloud.google.com/projectcreate) ->APIs & services
->credentials
. -
Find Client Id in the
Additional information
section and copy it. -
Add
Client Id
toNEXT_PUBLIC_GOOGLE_CLIENT_ID
in.env.local
NEXT_PUBLIC_GOOGLE_CLIENT_ID=abc
-
Add your domains to
Authorized JavaScript origins
like this:For local tests or development add both
http://localhost
andhttp://localhost:<port_number>
Previous: Architecture
Next: Testing