Qu1etboy / node-google-auth

An example using Node.js, Express with google-auth-library for authentication and authorization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-google-auth

A simple example using google-auth-library to authenticate and authorize users.

Technologies used

  • Node.js
  • Express

Getting Started

setup google client id and google client secret in your environment variable. which can be found in https://console.cloud.google.com/apis/credentials

GOOGLE_CLIENT_ID="your_client_id"
GOOGLE_CLIENT_SECRET="your_client_secret"

install dependencies

npm install
# or
pnpm install

start server

npm run dev
# or
pnpm dev

Usage

About

An example using Node.js, Express with google-auth-library for authentication and authorization


Languages

Language:JavaScript 94.9%Language:Shell 5.1%