Skip to content

Commit

Permalink
Added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pkandathil committed Mar 8, 2022
1 parent 14d8bec commit 3f005eb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Introduction
This is a simple Google OAuth login example using Fastify and Passport.

# Setup
[Fastify-secure-session](https://www.npmjs.com/package/fastify-secure-session) is being used for session management. You will need a secret-key to run this code.

`npx fastify-secure-session > secret-key`

Place the secret key in the base folder.

You will need to create a **.env** file in the base folder with these two variables that you will get from your Google Console
```
AUTH0_CLIENT_ID=clientID from Google
AUTH0_CLIENT_SECRET=Secret from Google
```
Make sure you add the gmail address you plan to login with to the allowed users list

# Run

To run the code
`npm run start`
and visit http://localhost:8080/

0 comments on commit 3f005eb

Please sign in to comment.