ever-co / ever-teams

Ever® Teams™ - Open Work and Project Management Platform - https://ever.team
https://ever.team
GNU Affero General Public License v3.0
264 stars 46 forks source link

Next Auth Adapter callback functions #2566

Closed GloireMutaliko21 closed 4 months ago

GloireMutaliko21 commented 4 months ago

This PR completes also this #2563 and add some other features and fixes

socket-security[bot] commented 4 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@alloc/quick-lru@5.2.0 None 0 14.1 kB aleclarson
npm/@ampproject/remapping@2.3.0 None 0 78.9 kB jridgewell
npm/@analytics/cookie-utils@0.2.12 None +2 318 kB davidwells
npm/@analytics/core@0.12.7 None +2 3.82 MB davidwells
npm/@analytics/localstorage-utils@0.1.10 None +2 295 kB davidwells
npm/@analytics/session-storage-utils@0.0.7 None +2 295 kB davidwells
npm/@analytics/storage-utils@0.4.2 None +2 404 kB davidwells
npm/@auth/core@0.31.0 network +1 1.6 MB balazsorban
npm/@babel/code-frame@7.22.13 None 0 23.7 kB nicolo-ribaudo
npm/@babel/code-frame@7.24.2 environment +1 29.8 kB nicolo-ribaudo
npm/@babel/core@7.22.9 environment, filesystem, unsafe +2 867 kB nicolo-ribaudo
npm/@babel/generator@7.22.10 None 0 485 kB nicolo-ribaudo
npm/@babel/generator@7.22.9 None +1 518 kB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.22.10 None +1 63.7 kB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.23.6 None +5 227 kB nicolo-ribaudo
npm/@babel/helper-create-class-features-plugin@7.22.11 None +6 295 kB nicolo-ribaudo
npm/@babel/helper-create-regexp-features-plugin@7.22.9 None +1 31 kB nicolo-ribaudo
npm/@babel/helper-environment-visitor@7.22.20 None 0 6.56 kB nicolo-ribaudo
npm/@babel/helper-function-name@7.23.0 None +1 25.1 kB nicolo-ribaudo
npm/@babel/helper-module-transforms@7.22.9 None +2 209 kB nicolo-ribaudo
npm/@babel/helper-module-transforms@7.23.3 None +4 250 kB nicolo-ribaudo
npm/@babel/helper-plugin-utils@7.22.5 None 0 11.9 kB nicolo-ribaudo
npm/@babel/helper-remap-async-to-generator@7.22.9 None +4 57.6 kB nicolo-ribaudo
npm/@babel/helper-replace-supers@7.22.9 None +3 103 kB nicolo-ribaudo
npm/@babel/helper-string-parser@7.24.1 None 0 31.7 kB nicolo-ribaudo
npm/@babel/helper-validator-identifier@7.22.20 None 0 49.1 kB nicolo-ribaudo
npm/@babel/helpers@7.24.1 Transitive: environment +8 4.26 MB nicolo-ribaudo
npm/@babel/highlight@7.22.13 None 0 18.8 kB nicolo-ribaudo
npm/@babel/highlight@7.24.2 environment +1 26.1 kB nicolo-ribaudo
npm/@babel/parser@7.22.14 None 0 1.88 MB nicolo-ribaudo
npm/@babel/parser@7.22.7 None 0 3.72 MB nicolo-ribaudo
npm/@babel/plugin-proposal-class-properties@7.18.6 None 0 3.34 kB nicolo-ribaudo
npm/@babel/plugin-syntax-class-properties@7.12.13 None 0 2.68 kB nicolo-ribaudo
npm/@babel/plugin-syntax-import-meta@7.10.4 None 0 2.56 kB jlhwung
npm/@babel/plugin-syntax-jsx@7.22.5 None 0 4.13 kB nicolo-ribaudo
npm/@babel/plugin-syntax-logical-assignment-operators@7.10.4 None 0 2.74 kB jlhwung
npm/@babel/plugin-syntax-numeric-separator@7.10.4 None 0 2.75 kB jlhwung
npm/@babel/plugin-syntax-top-level-await@7.14.5 None 0 2.74 kB nicolo-ribaudo
npm/@babel/plugin-syntax-typescript@7.22.5 None 0 6.86 kB nicolo-ribaudo
npm/@babel/plugin-transform-optional-chaining@7.22.12 None +2 46.2 kB nicolo-ribaudo
npm/@babel/plugin-transform-parameters@7.22.5 None 0 64.9 kB nicolo-ribaudo
npm/@babel/plugin-transform-runtime@7.22.10 unsafe +1 93.1 kB nicolo-ribaudo
npm/@babel/preset-react@7.22.5 None +7 191 kB nicolo-ribaudo
npm/@babel/preset-typescript@7.22.11 None +4 196 kB nicolo-ribaudo
npm/@babel/runtime@7.22.11 None 0 244 kB nicolo-ribaudo
npm/@babel/template@7.22.5 None 0 69 kB nicolo-ribaudo
npm/@babel/template@7.24.0 None +2 1.96 MB nicolo-ribaudo
npm/@babel/traverse@7.22.11 None +2 630 kB nicolo-ribaudo
npm/@babel/traverse@7.22.8 None +3 654 kB nicolo-ribaudo
npm/@babel/types@7.22.11 environment +1 2.43 MB nicolo-ribaudo
npm/@babel/types@7.22.5 environment +1 2.4 MB nicolo-ribaudo
npm/@jridgewell/gen-mapping@0.3.5 None 0 81.6 kB jridgewell
npm/@jridgewell/resolve-uri@3.1.2 None 0 53.2 kB jridgewell
npm/@jridgewell/set-array@1.2.1 None 0 17.9 kB jridgewell
npm/@jridgewell/sourcemap-codec@1.4.14 None 0 40 kB jridgewell
npm/@jridgewell/trace-mapping@0.3.25 None 0 169 kB jridgewell
npm/@lezer/common@0.15.12 None 0 155 kB marijn
npm/@mischnic/json-sourcemap@0.1.0 Transitive: environment +1 151 kB mischnic
npm/@parcel/source-map@2.1.1 Transitive: environment, filesystem, shell +1 4.16 MB devongovett
npm/@parcel/watcher@2.2.0 Transitive: environment, filesystem, shell +11 4.48 MB devongovett
npm/@plasmohq/prettier-plugin-sort-imports@4.0.1 unsafe +3 178 kB louisgv
npm/@radix-ui/react-dialog@1.0.5 None +8 672 kB benoitgrelard
npm/@svgr/plugin-jsx@6.5.1 Transitive: filesystem, unsafe +26 849 kB neoziro
npm/@swc/counter@0.1.3 None 0 1.18 kB kdy1
npm/@swc/types@0.1.6 None 0 185 kB kdy1
npm/@tailwindcss/forms@0.5.3 None +1 59.7 kB bradlc
npm/@tailwindcss/typography@0.5.8 None +3 151 kB bradlc
npm/@types/chrome@0.0.203 None +3 766 kB types
npm/@types/cookie@0.5.4 None 0 9.45 kB types
npm/@types/estree@1.0.5 None 0 25.7 kB types
npm/@types/http-cache-semantics@4.0.4 None 0 9.28 kB types
npm/@types/react-dom@18.0.6 None 0 28 kB types
npm/@types/react@18.0.21 None +2 191 kB types
npm/abortcontroller-polyfill@1.7.5 network 0 94.6 kB molsson
npm/acorn@8.11.3 None 0 531 kB marijn
npm/bare-events@2.2.2 None 0 18.9 kB kasperisager
npm/bare-os@2.2.1 None 0 316 kB kasperisager
npm/bare-path@2.1.0 None 0 35.1 kB kasperisager
npm/bl@4.1.0 None +2 157 kB matteo.collina
npm/browserslist@4.23.0 environment, filesystem 0 62.8 kB ai
npm/cacheable-request@10.2.14 None +5 146 kB jaredwray
npm/caniuse-lite@1.0.30001603 None 0 2 MB caniuse-lite
npm/classnames@2.5.1 None 0 23.6 kB jedwatson
npm/csstype@3.1.1 None 0 1.19 MB faddee
npm/domhandler@4.3.1 None 0 44.6 kB feedic
npm/dotenv@16.4.5 environment, filesystem 0 79.1 kB motdotla
npm/electron-to-chromium@1.4.722 None 0 282 kB kilianvalkhof
npm/fast-fifo@1.3.2 None 0 5.07 kB mafintosh
npm/get-intrinsic@1.2.4 eval +4 95.3 kB ljharb
npm/get-stream@6.0.1 None 0 12.2 kB sindresorhus
npm/i18next@23.11.5 None +1 884 kB adrai
npm/ini@1.3.8 None 0 9.3 kB isaacs
npm/is-reference@3.0.2 None 0 4.26 kB rich_harris
npm/keyv@4.5.4 None +1 33.2 kB jaredwray
npm/lilconfig@2.0.6 filesystem 0 16.5 kB antonk52
npm/minimist@1.2.7 None 0 50.7 kB ljharb
npm/msgpackr-extract@3.0.2 Transitive: environment, filesystem, unsafe +7 646 kB kriszyp
npm/nanoid@5.0.1 None 0 10.8 kB ai
npm/node-addon-api@7.1.0 None 0 396 kB legendecas
npm/node-gyp-build@4.5.0 environment, filesystem 0 12.9 kB vweevers
npm/node-releases@2.0.14 None 0 34 kB chicoxyzzy
npm/nullthrows@1.1.1 None 0 2.84 kB zertosh
npm/onetime@5.1.2 None +1 10.6 kB sindresorhus
npm/ordered-binary@1.4.0 None 0 50.2 kB kriszyp
npm/pako@2.1.0 None 0 1.64 MB vitaly
npm/plasmo@0.85.2 environment, filesystem, unsafe Transitive: eval, network, shell +444 1.48 GB louisgv
npm/postcss-selector-parser@6.0.10 None +1 201 kB evilebottnawi
npm/postcss-value-parser@4.2.0 None 0 27.2 kB evilebottnawi
npm/postcss@8.4.31 environment, filesystem +2 224 kB ai
npm/posthtml@0.16.6 Transitive: network +8 477 kB scrum
npm/qs@6.12.1 None +2 368 kB ljharb
npm/rc@1.2.8 environment, filesystem +2 31.5 kB dominictarr
npm/react-dom@18.2.0 environment +2 4.6 MB gnoff
npm/react-timer-hook@3.0.5 None 0 23.3 kB amrlabib
npm/react@18.2.0 environment +1 322 kB gnoff
npm/readable-stream@3.6.0 environment +1 137 kB matteo.collina
npm/resolve@1.22.1 environment, filesystem +4 190 kB ljharb
npm/simple-get@4.0.1 network +3 31.1 kB feross
npm/slate@0.90.0 None 0 1.65 MB ianstormtaylor
npm/streamx@2.16.1 None +1 52.3 kB mafintosh
npm/string-width@4.2.3 None +2 58.4 kB sindresorhus
npm/strip-ansi@6.0.1 None +1 9.64 kB sindresorhus
npm/svgo@2.8.0 filesystem Transitive: environment, network, shell +14 3.66 MB trysound
npm/tailwindcss@3.2.4 environment, filesystem Transitive: unsafe +20 6.2 MB adamwathan
npm/tslib@2.4.1 None 0 52.8 kB typescript-bot
npm/update-browserslist-db@1.0.13 filesystem, shell Transitive: environment +2 30.9 kB ai

🚮 Removed packages: npm/@cucumber/cucumber-expressions@16.1.2, npm/@cucumber/cucumber@8.11.1, npm/@cucumber/gherkin@25.0.2, npm/@cypress/browserify-preprocessor@3.0.2, npm/@hapi/b64@5.0.0, npm/@hapi/boom@9.1.4, npm/@hapi/bourne@2.1.0, npm/@hapi/cryptiles@5.1.0, npm/@hapi/hoek@9.3.0, npm/@hapi/iron@6.0.0, npm/@hapi/podium@4.1.3, npm/@jridgewell/gen-mapping@0.3.3, npm/@jridgewell/resolve-uri@3.1.1, npm/@lerna/legacy-package-management@8.1.2, npm/@lexical/react@0.8.1, npm/@next/eslint-plugin-next@13.4.19, npm/@nx/cypress@16.7.4, npm/@nx/detox@16.7.4, npm/@nx/eslint-plugin-nx@16.0.0-beta.1, npm/@nx/jest@16.7.4, npm/@nx/linter@16.7.4, npm/@nx/nest@16.7.4, npm/@nx/next@16.7.4, npm/@nx/node@16.7.4, npm/@nx/react@16.7.4, npm/@nx/web@16.7.4, npm/@nx/webpack@16.7.4, npm/@nx/workspace@16.7.4, npm/@semantic-release/changelog@6.0.3, npm/@semantic-release/git@10.0.1, npm/@semantic-release/github@9.2.6, npm/@semantic-release/npm@11.0.3, npm/@types/detox@18.1.0, npm/@types/estree@1.0.1, npm/@types/istanbul-lib-coverage@2.0.4, npm/@types/mime@1.3.2, npm/@types/pg@8.6.1, npm/@types/yargs@17.0.32, npm/@typescript-eslint/eslint-plugin@5.60.1, npm/@typescript-eslint/parser@5.60.1, npm/@webassemblyjs/ast@1.11.6, npm/@webassemblyjs/wasm-parser@1.11.6, npm/accepts@1.3.8, npm/acorn@8.10.0, npm/ajv-formats@2.1.1, npm/ajv@8.12.0, npm/ansi-colors@4.1.3, npm/call-bind@1.0.2, npm/chownr@2.0.0, npm/cli-spinners@2.6.1, npm/cli-table3@0.6.3, npm/cloc@2.0.0-cloc, npm/colorette@2.0.20, npm/combined-stream@1.0.8, npm/commitizen@4.3.0, npm/concurrently@8.2.2, npm/conventional-changelog-cli@2.2.2, npm/conventional-changelog@3.1.25, npm/cookie@0.5.0, npm/core-util-is@1.0.3, npm/cosmiconfig@8.3.3, npm/cross-env@7.0.3, npm/cspell@8.0.0, npm/cypress-file-upload@5.0.8, npm/cypress@11.2.0, npm/cz-conventional-changelog@3.3.0, npm/deep-is@0.1.4, npm/depd@2.0.0, npm/detect-indent@6.1.0, npm/detox@20.11.1, npm/diff@4.0.2, npm/enhanced-resolve@5.15.0, npm/envalid@6.0.2, npm/eslint-config-prettier@8.10.0, npm/eslint-plugin-cypress@2.13.4, npm/eslint-plugin-prettier@4.2.1, npm/eslint-plugin-react@7.33.2, npm/eslint-scope@5.1.1, npm/eslint@8.46.0, npm/esprima@4.0.1, npm/esquery@1.5.0, npm/estraverse@5.3.0, npm/eventemitter3@4.0.7, npm/extend@3.0.2, npm/fast-deep-equal@3.1.3, npm/fast-glob@3.3.1, npm/fast-json-stable-stringify@2.1.0, npm/fast-levenshtein@2.0.6, npm/find-up@5.0.0, npm/follow-redirects@1.15.6, npm/git-raw-commits@2.0.11, npm/glob@8.1.0, npm/graceful-fs@4.2.11, npm/has-bigints@1.0.2, npm/husky@9.0.11, npm/inquirer@8.2.4, npm/ip@2.0.0, npm/is-path-inside@3.0.3, npm/istanbul-lib-coverage@3.2.0, npm/lerna-changelog@2.2.0, npm/lerna@8.1.2, npm/lexical@0.8.1, npm/lilconfig@2.1.0, npm/lint-staged@10.5.4, npm/mime-db@1.52.0, npm/mime-types@2.1.35, npm/minimist@1.2.8, npm/mkdirp@1.0.4, npm/ms@2.0.0, npm/mute-stream@0.0.8, npm/negotiator@0.6.3, npm/node-addon-api@3.2.1, npm/nx-cloud@16.3.0, npm/nx@16.7.4, npm/object-inspect@1.12.3, npm/p-limit@3.1.0, npm/parseurl@1.3.3, npm/pg-types@2.2.0, npm/postgres-array@2.0.0, npm/postgres-bytea@1.0.0, npm/postgres-date@1.0.7, npm/postgres-interval@1.2.0, npm/prettier-eslint-cli@8.0.1, npm/pretty-quick@4.0.0, npm/randombytes@2.1.0, npm/range-parser@1.2.1, npm/resolve-global@1.0.0, npm/rimraf@5.0.5, npm/safe-buffer@5.1.2, npm/semantic-release@22.0.12, npm/serialize-javascript@6.0.1, npm/sha.js@2.4.11, npm/source-map-support@0.5.21, npm/source-map@0.7.4, npm/statuses@1.5.0, npm/strip-json-comments@3.1.1, npm/tapable@2.2.1, npm/text-table@0.2.0, npm/through@2.3.8, npm/ts-node@10.9.2, npm/type-check@0.4.0, npm/unpipe@1.0.0, npm/uuid@9.0.0, npm/vary@1.1.2, npm/webpack-sources@3.2.3, npm/word-wrap@1.2.5, npm/yargs-parser@21.1.1, npm/yargs@17.7.2

View full report↗︎

socket-security[bot] commented 4 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/esbuild@0.18.20
Install scripts npm/@swc/core@1.3.82
  • Install script: postinstall
  • Source: node postinstall.js
Install scripts npm/@swc/core@1.4.11
  • Install script: postinstall
  • Source: node postinstall.js

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/esbuild@0.18.20
  • @SocketSecurity ignore npm/@swc/core@1.3.82
  • @SocketSecurity ignore npm/@swc/core@1.4.11
evereq commented 4 months ago

@GloireMutaliko21 please fix all my comments in NEXT PR