Jeffin Jose
Full Stack Developer
Crafting seamless user experiences for web and mobile. 8+ years of full-stack development expertise, with experience leading teams to design and implement scalable applications and cloud solutions.
All projects

Crest Auth System

Crest Auth System

Crest is a secure and scalable authentication service built with NestJS, featuring OAuth 2.0 integration and JWT-based session management.

Core Features

  • OAuth 2.0 Integration: Seamless social authentication with Google using Passport.js, with expandable architecture for additional platforms (GitHub, Facebook, Twitter)
  • JWT Authentication: Secure token generation and validation using Passport-JWT strategy
  • User Management: Robust user profile handling with automatic profile creation on first OAuth sign-in
  • Role-Based Authorization: Flexible access control using Guards and Decorators

Tech Stack

Authentication Flow

  1. OAuth provider authentication
  2. Automatic user registration/login
  3. JWT token generation
  4. Secure token delivery to client

OAuth Flow

Client Authentication

User clicks "Sign in" button in Next.js app (any client)

client

API Redirect

NestJS /auth/google/signin endpoint redirects to Google

api

Google Consent

User sees Google consent screen if not already authorized

google

Callback Processing

Google redirects to /auth/google/callback, checks user in database

apidatabase

JWT Generation

Generate JWT with PassportJS and redirect to client with token

apiclient