Skip to content

Added code#8

Open
NishantSinghhhhh wants to merge 25 commits intomainfrom
test
Open

Added code#8
NishantSinghhhhh wants to merge 25 commits intomainfrom
test

Conversation

@NishantSinghhhhh
Copy link
Copy Markdown
Contributor

No description provided.

NishantSinghhhhh and others added 11 commits June 26, 2025 10:20
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

@@ -1,196 +1 @@
import express, { Application, Request, Response, NextFunction } from "express";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove old console.log statement if it's no longer needed.

src/index.ts Outdated
// ✅ Serverless export (required for Vercel)
export default app;

erververver No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure the new console.log statement is necessary for debugging.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@@ -8,9 +8,6 @@ import dotenv from "dotenv";

dotenv.config();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider keeping the serializeUser function for future use or documentation.

@@ -25,15 +22,16 @@ passport.use(
scope: [
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new scopes added are necessary for your application's functionality.

@@ -32,7 +32,6 @@ app.use(cors({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented-out code to maintain clean code practices.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

@@ -8,9 +8,6 @@ import dotenv from "dotenv";

dotenv.config();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider keeping the serializeUser function for future use or documentation.

done(null, user);
});

passport.deserializeUser((obj: any, done) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new scopes added are necessary for your application's functionality.

@@ -32,7 +32,6 @@ app.use(cors({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented code if it's no longer needed to keep the codebase clean.

import { VerifyCallback } from "passport-oauth2";
import dotenv from "dotenv";

dotenv.config();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider keeping the serializeUser function for future use or documentation.

userToken:string|null, // ← can be null but code never checks
githubUser: any, // ← “any” everywhere
db: any, // mongo? sql? nobody knows
logger?: { info(...args:any[]):void } // optional logger never called
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new scopes added are necessary for your application's functionality.

@@ -32,7 +32,6 @@ app.use(cors({

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove commented-out code to maintain clean code practices.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

Signed-off-by: NishantSinghhhhh <nishantsingh_230137@aitpune.edu.in>
@pullquestai
Copy link
Copy Markdown

🎉 Thanks for opening this pull request, @NishantSinghhhhh!

• Linked issue: no linked issue
• 🪙 Stake deducted: 0 coins.

@NishantSinghhhhh
Copy link
Copy Markdown
Contributor Author

@pullquestai form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants