Add JWT auth module#3
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds JWT authentication functionality to the application, including login capability, token generation, and cookie-based authentication. The changes introduce a complete authentication module with JWT token handling and update configuration to use standardized environment variables.
- Added JWT authentication module with login mutation and token generation
- Created GraphQL context interface for request/response handling
- Standardized environment variable names (PORT, DATABASE_URL)
Reviewed Changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Added JWT and Express dependencies |
| libs/nestjs/src/lib/graphql/gql-context.interface.ts | Created GraphQL context interface for Express req/res |
| apps/trigger-auth/src/app/auth/* | New authentication module with service, resolver, and DTOs |
| apps/trigger-auth/src/app/users/* | Extended users service and exported it for auth module |
| apps/trigger-auth/src/app/app.module.ts | Integrated auth module and GraphQL context |
| apps/trigger-auth/src/main.ts | Updated to use standardized PORT environment variable |
| apps/trigger-auth/prisma/schema.prisma | Updated to use standardized DATABASE_URL environment variable |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
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.
No description provided.