feat(next-api): basic authentication setup (#49378)

* feat(next-api): add fastify-auth0-verify plugin

* feat(next-api): add fastify-jwt-authz plugin

* feat(next-api): accept privacy endpoint with scopes support

* fix(next-api): ignore eslint and ts errors

They will be fixed in a future PR when the package with errors has been updated

Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Mrugesh Mohapatra
2023-02-24 12:36:53 +05:30
committed by Mrugesh Mohapatra
parent 1c9004046b
commit 7199f033fb
9 changed files with 514 additions and 10 deletions
+3 -2
View File
@@ -7,7 +7,8 @@
"@fastify/middie": "8.1",
"@fastify/mongodb": "6.1.0",
"fastify": "4.9.2",
"fastify-plugin": "4.3.0"
"fastify-auth0-verify": "^1.0.0",
"fastify-plugin": "^4.3.0"
},
"description": "The freeCodeCamp.org open-source codebase and curriculum",
"engines": {
@@ -35,7 +36,7 @@
"build": "tsc",
"develop": "nodemon index.ts",
"start": "NODE_ENV=production node index.js",
"test": "NODE_OPTIONS='--test-only' ts-node **/*.test.ts"
"test": "node --test -r ts-node/register **/*.test.ts"
},
"version": "0.0.1"
}