mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-12-23 05:07:44 +00:00
Nabarun Gogoi
ef0eac8293
* Create web3 modal provider with SIWE * Add auth router to handle SIWE authentication * Use axios instance to make request * Add button for SIWE authentication * Add changes to access session in web-app GQL requests * Add auth check in GQL context and load/create user * Use authenticated user from context * Redirect to sign in page if unauthenticated and logout button * Change sign-in route to login * Get project domain from config file * Set user ethAddress column as unique * Use formatted user name * Get session secret and origin url from config file * Add unique constraint for eth address * Get secure and samesite from origin url * Get wallet connect id and backend url from env file * Format user email in member tab panel * Add backend config isProduction to set trust proxy * Use only one server url config * Add tool tip for displaying email * Add trustProxy and domain in server.session config * Add SERVER_GQL_PATH constant in frontend --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
66 lines
2.2 KiB
JSON
66 lines
2.2 KiB
JSON
{
|
|
"name": "backend",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"dependencies": {
|
|
"@cerc-io/laconic-sdk": "^0.1.14",
|
|
"@graphql-tools/schema": "^10.0.2",
|
|
"@graphql-tools/utils": "^10.0.12",
|
|
"@octokit/oauth-app": "^6.1.0",
|
|
"@types/debug": "^4.1.5",
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^20.11.0",
|
|
"apollo-server-core": "^3.13.0",
|
|
"apollo-server-express": "^3.13.0",
|
|
"cors": "^2.8.5",
|
|
"debug": "^4.3.1",
|
|
"express": "^4.18.2",
|
|
"express-session": "^1.18.0",
|
|
"fs-extra": "^11.2.0",
|
|
"graphql": "^16.8.1",
|
|
"luxon": "^3.4.4",
|
|
"nanoid": "3",
|
|
"nanoid-dictionary": "^5.0.0-beta.1",
|
|
"octokit": "^3.1.2",
|
|
"reflect-metadata": "^0.2.1",
|
|
"semver": "^7.6.0",
|
|
"toml": "^3.0.0",
|
|
"ts-node": "^10.9.2",
|
|
"typeorm": "^0.3.19",
|
|
"typescript": "^5.3.3"
|
|
},
|
|
"scripts": {
|
|
"start": "DEBUG=snowball:* node --enable-source-maps ./dist/index.js",
|
|
"start:dev": "DEBUG=snowball:* ts-node ./src/index.ts",
|
|
"copy-assets": "copyfiles -u 1 src/**/*.gql dist/",
|
|
"clean": "rm -rf ./dist",
|
|
"build": "yarn clean && tsc && yarn copy-assets",
|
|
"lint": "eslint .",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"test:registry:init": "DEBUG=snowball:* ts-node ./test/initialize-registry.ts",
|
|
"test:registry:publish-deploy-records": "DEBUG=snowball:* ts-node ./test/publish-deploy-records.ts",
|
|
"test:db:load:fixtures": "DEBUG=snowball:* ts-node ./test/initialize-db.ts",
|
|
"test:db:delete": "DEBUG=snowball:* ts-node ./test/delete-db.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express-session": "^1.17.10",
|
|
"@types/fs-extra": "^11.0.4",
|
|
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
"@typescript-eslint/parser": "^6.18.1",
|
|
"better-sqlite3": "^9.2.2",
|
|
"copyfiles": "^2.4.1",
|
|
"eslint": "^8.56.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-config-semistandard": "^15.0.1",
|
|
"eslint-config-standard": "^16.0.3",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"eslint-plugin-promise": "^5.1.0",
|
|
"eslint-plugin-standard": "^5.0.0",
|
|
"prettier": "^3.1.1",
|
|
"workspace": "^0.0.1-preview.1"
|
|
}
|
|
}
|