Auth

January 30, 2024 ยท View on GitHub

Table of Contents

Auth via Google

  1. 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.

  2. Find Client Id in the Additional information section and copy it.

  3. Add Client Id to NEXT_PUBLIC_GOOGLE_CLIENT_ID in .env.local

    NEXT_PUBLIC_GOOGLE_CLIENT_ID=abc
    
  4. Add your domains to Authorized JavaScript origins like this: Authorized JavaScript origins

    For local tests or development add both http://localhost and http://localhost:<port_number>


Previous: Architecture

Next: Testing