Senior Full Stack Engineer
I build web and mobile products end to end with TypeScript, Next.js, React Native, NestJS and Python. 10 years across SaaS, fintech, esports and security, usually working directly with founders.
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