Skip to content

Commit

Permalink
debug state
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Sep 21, 2024
1 parent 41a4963 commit 9f89ed7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 34 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Current File",
"type": "node",
"request": "launch",
"program": "${file}",
"runtimeExecutable": "tsx",
"skipFiles": [
"<node_internals>/**"
]
}
]
}
41 changes: 7 additions & 34 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,10 @@
{
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
}
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
}
},
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"editor.defaultFormatter": "biomejs.biome"
},
"editor.formatOnSave": true,
"editor.inlayHints.enabled": "on",
"dotenv.enableAutocloaking": false,
"material-icon-theme.folders.associations": {
"oauth2": "secure",
"modules": "components",
"workers": "controller"
},
"material-icon-theme.files.associations": {
".env.prod.secret": "tune"
},
"cSpell.words": [
"Ufabc"
]
}
"paralleldrive"
],
"editor.formatOnSave": true,
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
2 changes: 2 additions & 0 deletions apps/core/src/plugins/oauth2/oauthFixed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ async function oauth2Debug(app: FastifyInstance, opts: Record<string, string>) {

app.get('/login/google', {}, async function (request, reply) {
try {
console.log('do nosso lado - request', request.query.state);
app.log.warn({
URLState: request.query.state,
googleStateCookie: request.cookies['oauth2-redirect-state'],
Expand All @@ -40,6 +41,7 @@ async function oauth2Debug(app: FastifyInstance, opts: Record<string, string>) {

app.get('/login/google/callback', async function (request, reply) {
try {
console.log('do nosso lado - callback', request.query.state);
app.log.warn({
URLState: request.query.state,
googleStateCookie: request.cookies['oauth2-redirect-state'],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"devDependencies": {
"@biomejs/biome": "^1.8.2",
"tsx": "^4.15.7",
"turbo": "^2.0.4"
},
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f89ed7

Please sign in to comment.