Add JWT Authentication with Supabase Integration#5
Open
Conversation
2817d17 to
b2f8f00
Compare
- Implement JWT-based authentication with login, logout, and refresh token - Add User module with GraphQL resolver for current user - Create auth guards and decorators for role-based access control - Add logging interceptor and auth constants - Integrate auth and user modules into app module - Update GraphQL schema with auth types and mutations - Add user creation migration
b2f8f00 to
cc438a2
Compare
- Add authentication test suites for login, logout, and refresh token - Create Supabase stubs for testing auth functionality - Update spot resolver tests to work with auth guards - Refactor spot fixtures to new structure - Update NestJS testing module configuration - Add auth guards to spot resolver endpoints
- Add Supabase environment variables for auth - Update Node version requirement to 22.17.1 - Add auth-related dependencies (@supabase/supabase-js) - Configure Jest for auth module testing - Update TypeScript paths for new modules - Add .nvmrc for Node version management
- Add CLAUDE.md with codebase instructions - Add PROJECT_SPECIFICATION.md with project requirements - Configure VSCode settings for the project - Add Claude Code local settings configuration
cc438a2 to
e66aebf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a complete JWT-based authentication system using Supabase as the authentication
provider. It adds user authentication capabilities including login, logout, and token refresh
functionality with role-based access control.
Changes
🔐 Authentication System
👤 User Management
🛡️ Security Enhancements
🧪 Testing Infrastructure
📦 Dependencies & Configuration
GraphQL Schema Changes
Added new types and mutations:
type User
type Session
type AuthOutput
mutation login
mutation logout
mutation refreshToken
query me
Database Changes
Testing
All authentication endpoints have been thoroughly tested:
Configuration
Breaking Changes