@webda/auth 0.0.0-stage → 4.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/LICENSE +166 -0
  2. package/README.md +26 -2
  3. package/lib/authentication.service.d.ts +286 -0
  4. package/lib/authentication.service.d.ts.map +1 -0
  5. package/lib/authentication.service.js +798 -0
  6. package/lib/authentication.service.js.map +1 -0
  7. package/lib/compat/upgrade.d.ts +71 -0
  8. package/lib/compat/upgrade.d.ts.map +1 -0
  9. package/lib/compat/upgrade.js +185 -0
  10. package/lib/compat/upgrade.js.map +1 -0
  11. package/lib/email/emailpassword.service.d.ts +241 -0
  12. package/lib/email/emailpassword.service.d.ts.map +1 -0
  13. package/lib/email/emailpassword.service.js +718 -0
  14. package/lib/email/emailpassword.service.js.map +1 -0
  15. package/lib/email/tokens.d.ts +36 -0
  16. package/lib/email/tokens.d.ts.map +1 -0
  17. package/lib/email/tokens.js +46 -0
  18. package/lib/email/tokens.js.map +1 -0
  19. package/lib/errors.d.ts +53 -0
  20. package/lib/errors.d.ts.map +1 -0
  21. package/lib/errors.js +73 -0
  22. package/lib/errors.js.map +1 -0
  23. package/lib/index.d.ts +9 -0
  24. package/lib/index.d.ts.map +1 -0
  25. package/lib/index.js +9 -0
  26. package/lib/index.js.map +1 -0
  27. package/lib/oauth/oauth.service.d.ts +293 -0
  28. package/lib/oauth/oauth.service.d.ts.map +1 -0
  29. package/lib/oauth/oauth.service.js +557 -0
  30. package/lib/oauth/oauth.service.js.map +1 -0
  31. package/lib/provider.d.ts +53 -0
  32. package/lib/provider.d.ts.map +1 -0
  33. package/lib/provider.js +55 -0
  34. package/lib/provider.js.map +1 -0
  35. package/lib/test/authtest.d.ts +39 -0
  36. package/lib/test/authtest.d.ts.map +1 -0
  37. package/lib/test/authtest.js +62 -0
  38. package/lib/test/authtest.js.map +1 -0
  39. package/lib/test/emailtest.d.ts +25 -0
  40. package/lib/test/emailtest.d.ts.map +1 -0
  41. package/lib/test/emailtest.js +39 -0
  42. package/lib/test/emailtest.js.map +1 -0
  43. package/lib/test/fakeoauth.service.d.ts +45 -0
  44. package/lib/test/fakeoauth.service.d.ts.map +1 -0
  45. package/lib/test/fakeoauth.service.js +78 -0
  46. package/lib/test/fakeoauth.service.js.map +1 -0
  47. package/lib/test/stubprovider.d.ts +35 -0
  48. package/lib/test/stubprovider.d.ts.map +1 -0
  49. package/lib/test/stubprovider.js +46 -0
  50. package/lib/test/stubprovider.js.map +1 -0
  51. package/lib/test/v3.d.ts +29 -0
  52. package/lib/test/v3.d.ts.map +1 -0
  53. package/lib/test/v3.js +47 -0
  54. package/lib/test/v3.js.map +1 -0
  55. package/lib/throttle.d.ts +40 -0
  56. package/lib/throttle.d.ts.map +1 -0
  57. package/lib/throttle.js +47 -0
  58. package/lib/throttle.js.map +1 -0
  59. package/package.json +69 -3
  60. package/test/config.json +20 -0
  61. package/webda.module.json +632 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throttle.js","sourceRoot":"","sources":["../src/throttle.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CAAC,CAAgB,EAAE,YAAoB,EAAE,SAAiB,EAAE,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE;IAC1G,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,CAAC,IAAI,YAAY,IAAI,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,CAAC,GAAG,SAAS,GAAG,GAAG,CAAC;AAC1G,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,CAAgB,EAAE,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE;IACtE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC,EAAE,cAAc,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC;AACpF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC,EAAE,mBAAmB,EAAE,SAAS,EAAE,CAAC;AAC/D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,OAAO,CAAC,CAAgB,EAAE,OAAe,EAAE,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE;IACjF,OAAO,CAAC,CAAC,EAAE,UAAU,IAAI,CAAC,CAAC,UAAU,GAAG,OAAO,GAAG,GAAG,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,CAAgB,EAAE,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE;IACjE,OAAO,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC;AAC3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,72 @@
1
1
  {
2
2
  "name": "@webda/auth",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "4.0.0-beta.5",
4
+ "description": "Authentication service and providers for Webda",
5
+ "keywords": [
6
+ "authentication",
7
+ "auth",
8
+ "webda"
9
+ ],
10
+ "author": "Remi Cattiau <remi@cattiau.com>",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/loopingz/webda.io.git",
14
+ "directory": "packages/auth"
15
+ },
16
+ "main": "lib/index.js",
17
+ "typings": "lib/index.d.ts",
18
+ "dependencies": {
19
+ "@webda/core": "4.0.0-beta.5",
20
+ "@webda/utils": "4.0.0-beta.5",
21
+ "@webda/models": "4.0.0-beta.5",
22
+ "@webda/workout": "4.0.0-beta.5"
23
+ },
24
+ "files": [
25
+ "lib",
26
+ "test",
27
+ "webda.module.json"
28
+ ],
29
+ "homepage": "https://webda.io",
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "webda": {
34
+ "namespace": "Webda"
35
+ },
36
+ "devDependencies": {
37
+ "@types/node": "25.5.0",
38
+ "@vitest/coverage-v8": "^4.1.2",
39
+ "jscodeshift": "^17.3.0",
40
+ "skott": "^0.35.8",
41
+ "tsx": "^4.21.0",
42
+ "typescript": "7.1.0-dev.20260929.1",
43
+ "vite": "^6.0.0",
44
+ "vitest": "^4.1.2",
45
+ "@webda/fs": "4.0.0-beta.5",
46
+ "@webda/compiler": "^4.0.0-beta.5",
47
+ "@webda/test": "4.0.0-beta.5",
48
+ "@webda/content-mapper": "^4.0.0-beta.5"
49
+ },
50
+ "type": "module",
51
+ "engines": {
52
+ "node": ">=22.0.0"
53
+ },
54
+ "nx": {
55
+ "implicitDependencies": [
56
+ "@webda/core"
57
+ ]
58
+ },
59
+ "license": "LGPL-3.0-only",
60
+ "scripts": {
61
+ "build": "webdac build",
62
+ "build:watch": "webdac build --watch",
63
+ "pretest": "npm run build",
64
+ "lint": "eslint",
65
+ "lint:fix": "eslint --fix",
66
+ "test": "vitest run",
67
+ "format": "prettier --check src/**/*",
68
+ "format:fix": "prettier --write src/**/*",
69
+ "deps:graph": "skott --showCircularDependencies --no-trackTypeOnlyDependencies --displayMode=raw -e .ts",
70
+ "codemod": "jscodeshift --parser=ts --extensions=tsx,ts -t ../codemod/current.mjs src"
71
+ }
6
72
  }
@@ -0,0 +1,20 @@
1
+ {
2
+ "version": 3,
3
+ "parameters": { "ignoreBeans": true },
4
+ "services": {
5
+ "AuthStore": { "type": "Webda/MemoryStore", "models": ["Webda/User", "Webda/Ident", "Webda/RefreshToken"] },
6
+ "DefinedMailer": { "type": "WebdaTest/Mailer" },
7
+ "Authentication": { "type": "Webda/Authentication" },
8
+ "googleStub": { "type": "WebdaTest/Stub_google" },
9
+ "emailAuth": {
10
+ "type": "Webda/EmailPasswordProvider",
11
+ "mailer": "DefinedMailer",
12
+ "redirects": {
13
+ "verified": "https://app/verified",
14
+ "failure": "https://app/failure",
15
+ "register": "https://app/register",
16
+ "recover": "https://app/recover"
17
+ }
18
+ }
19
+ }
20
+ }