Skip to content

Login/SignUp Component uses JWT authentication in Google One tap sign in, login in with google & login in with facebook

Notifications You must be signed in to change notification settings

SaiBarathR/one-tap-login-with-jwt

Repository files navigation

Login App with JWT and One Tap Login Client

Note that this is the client side of the app. The server side can be found JWT Login Node Service.

This is a simple login app using JWT authentication with Sign in / Sign up, Sign in with Google and One Tap Login and Sign in with Facebook. The app is built with Node.js, Express, PostgreSQL, Sequelize ORM, JWT, Google One Tap and Facebook OAuth.

The app is built with Vite and React. The UI is built with Next UI and Tailwind CSS. The animations are done with Framer Motion.

The server side is deployed on Heroku and the client side is deployed on netlify. The app can be found here.

Table of Contents

Features

  • Sign in / Sign up with email and password
  • Sign in with Google
  • One Tap Login
  • Sign in with Facebook
  • JWT authentication
  • React Router

Screenshots

Home Page Sign in

Screenshot 2023-12-31 at 5 32 34 PM

Home Page Sign up

Screenshot 2023-12-31 at 5 31 07 PM

Loading Screen

Screenshot 2023-12-31 at 5 36 15 PM

User Data

Screenshot 2023-12-31 at 5 38 08 PM

Prerequisites

Api Reference

Installation

  1. Clone the repo
git clone https://github.com/SaiBarathR/login-page-with-jwt-auth-one-tap-sign-in.git
  1. Install NPM packages
cd login-page-with-jwt-auth-one-tap-sign-in

npm install

Configuration

Environment variables

  • Create a .env file in the root directory of the project.
  • Add the following environment variables to the .env file.
VITE_APP_GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID 

VITE_APP_FACEBOOK_APP_ID=YOUR_FACEBOOK_APP_ID

VITE_APP_BASE_URL=http://localhost:[Port of node server]/api

Usage

  1. Run the app
npm run dev
  1. Open http://localhost:3000 to view it in the browser.

Built With Vite and React

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Sai Barath - LinkedIn

About

Login/SignUp Component uses JWT authentication in Google One tap sign in, login in with google & login in with facebook

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published