-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ft google auth #187419170 #27
Conversation
.env.example
Outdated
CLOUDINARY_CLOUD_NAME= "" use yours | ||
CLOUDINARY_API_KEY= "" use yours | ||
CLOUDINARY_API_SECRET= "" use yours |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed it
.vscode/settings.json
Outdated
{ | ||
"sqltools.connections": [ | ||
{ | ||
"previewLimit": 50, | ||
"server": "localhost", | ||
"port": 5432, | ||
"driver": "PostgreSQL", | ||
"name": "new", | ||
"group": "new", | ||
"database": "ecommerce_db", | ||
"username": "postgres" | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please pay attention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added .vscode in .gitignore and removed it
__test__/home.test.ts
Outdated
expect(response.status).toBe(200); | ||
}, 20000); | ||
test("server should return status code of 200 and link to log in with google --> given'/login'", async () => { | ||
const response = await request(app).get("/login"); | ||
expect(response.text).toBe("<a href='/auth/google'>click to here to Login</a>") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should test what you have done not what you use to test it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added tests for my endpoints
src/utils/server.ts
Outdated
app.use(cors()); | ||
|
||
app.use("/", homeRoute); | ||
app.use("/api/v1", appROutes); | ||
app.use("/docs", docRouter); | ||
app.use('/', googleRoutes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this here,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refined as requested
PR name and description is wrong please check on naming convertion again |
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected '}'.
}, | ||
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw 'tseslint'.
Expected '}' to match '{' from line 18 and instead saw '...'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Unrecoverable syntax error. (39% scanned).
ignores: ["**/__test__", "**/*.json"], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); | |||
const tseslint = require("typescript-eslint"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected '}'.
}, | ||
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw 'tseslint'.
Expected '}' to match '{' from line 18 and instead saw '...'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Unrecoverable syntax error. (39% scanned).
ignores: ["**/__test__", "**/*.json"], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); | |||
const tseslint = require("typescript-eslint"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected '}'.
}, | ||
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw 'tseslint'.
Expected '}' to match '{' from line 18 and instead saw '...'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Unrecoverable syntax error. (39% scanned).
ignores: ["**/__test__", "**/*.json"], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); | |||
const tseslint = require("typescript-eslint"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected '}'.
}, | ||
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw 'tseslint'.
Expected '}' to match '{' from line 18 and instead saw '...'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Unrecoverable syntax error. (39% scanned).
ignores: ["**/__test__", "**/*.json"], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); | |||
const tseslint = require("typescript-eslint"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected '}'.
}, | ||
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw 'tseslint'.
Expected '}' to match '{' from line 18 and instead saw '...'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Unrecoverable syntax error. (39% scanned).
ignores: ["**/__test__", "**/*.json"], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); | |||
const tseslint = require("typescript-eslint"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
10286351 | Triggered | Company Email Password | 68e9929 | src/sequelize/seeders/20240412144111-demo-user.js | View secret |
10286351 | Triggered | Company Email Password | bd9384b | src/sequelize/seeders/20240412144111-demo-user.js | View secret |
10286352 | Triggered | Generic Password | 68e9929 | src/sequelize/seeders/20240412144111-demo-user.js | View secret |
10286352 | Triggered | Generic Password | bd9384b | src/sequelize/seeders/20240412144111-demo-user.js | View secret |
10286352 | Triggered | Generic Password | bd9384b | src/sequelize/seeders/20240412144111-demo-user.js | View secret |
10286352 | Triggered | Generic Password | 68e9929 | src/sequelize/seeders/20240412144111-demo-user.js | View secret |
10538571 | Triggered | Generic Password | 12b02a5 | test/user.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
you have many commits bertin squash them and are you sure you have changed 40 files |
- Implement the feature to allow users update their password - Added validation check for old password, new password and confirm password - hash the new password before updating - documented the feature using swagger [Delivers #187419174]
- Add signin and sign up with google account - return access token - added test delivers #187419170
4566a10
to
b0fc4f4
Compare
what does this PR do?
Description of Task to be completed:
how to test it