@feathersjs/authentication-client 5.0.37 → 6.0.0-pre.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,98 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 6.0.0-pre.0 (2026-01-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ - Authentication core improvements ([#1260](https://github.com/feathersjs/feathers/issues/1260)) ([c5dc7a2](https://github.com/feathersjs/feathers/commit/c5dc7a23022629e7f812c1260e68d23a290d53fc))
11
+ - Authentication type improvements and timeout fix ([#1605](https://github.com/feathersjs/feathers/issues/1605)) ([19854d3](https://github.com/feathersjs/feathers/commit/19854d346a2f7f3aeb1a1f166fee2570f6ec1a5a))
12
+ - **authentication-client:** Allow reAuthentication using specific strategy ([#2140](https://github.com/feathersjs/feathers/issues/2140)) ([2a2bbf7](https://github.com/feathersjs/feathers/commit/2a2bbf7f8ee6d32b9fac8afab3421286b06e6443))
13
+ - **authentication-client:** Allow to abort fetch ([#3310](https://github.com/feathersjs/feathers/issues/3310)) ([ff3e104](https://github.com/feathersjs/feathers/commit/ff3e104b62d02d45261a293aff4e9491241f486f))
14
+ - **authentication-client:** Do not cache authentication errors ([#2892](https://github.com/feathersjs/feathers/issues/2892)) ([cc4e767](https://github.com/feathersjs/feathers/commit/cc4e76726fce1ac73252cfd92e22570d4bdeca20))
15
+ - **authentication-client:** Do not trigger storage methods if storage not defined ([#3210](https://github.com/feathersjs/feathers/issues/3210)) ([261acbc](https://github.com/feathersjs/feathers/commit/261acbcde387db731e434cb106a27b49dcb64a9a))
16
+ - **authentication-client:** Ensure reAuthenticate works in parallel with other requests ([#2690](https://github.com/feathersjs/feathers/issues/2690)) ([41b3761](https://github.com/feathersjs/feathers/commit/41b376106b47e2f40a8914db7a5ed2935e070c08))
17
+ - **authentication-client:** Fix storage type so it works with all supported interfaces ([#2041](https://github.com/feathersjs/feathers/issues/2041)) ([6ee0e78](https://github.com/feathersjs/feathers/commit/6ee0e78d55cf1214f61458f386b94c350eec32af))
18
+ - **authentication-client:** Improve socket reauthentication handling ([#2895](https://github.com/feathersjs/feathers/issues/2895)) ([9db5e7a](https://github.com/feathersjs/feathers/commit/9db5e7adb0f6aea43d607f530d8258ade98b7362))
19
+ - **authentication-client:** Properly handle missing token error ([#2700](https://github.com/feathersjs/feathers/issues/2700)) ([160746e](https://github.com/feathersjs/feathers/commit/160746e2bceb465fd1b6a003415f8ab38daba521))
20
+ - **authentication-client:** Remove access token for fatal 400 errors ([#2894](https://github.com/feathersjs/feathers/issues/2894)) ([cfc6c7a](https://github.com/feathersjs/feathers/commit/cfc6c7a6b9dbc7fb60816e2b7f15897c38deb98d))
21
+ - **authentication-client:** removeAccessToken throws error if storage not defined ([#3195](https://github.com/feathersjs/feathers/issues/3195)) ([b8e2769](https://github.com/feathersjs/feathers/commit/b8e27698f7958a91fe9a4ee64ec5591d23194c44))
22
+ - **authentication-client:** Reset authentication promise on socket disconnect ([#1696](https://github.com/feathersjs/feathers/issues/1696)) ([3951626](https://github.com/feathersjs/feathers/commit/395162633ff22e95833a3c2900cb9464bb5b056f))
23
+ - **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
24
+ - **core:** Update to latest feathersjs/hooks ([#3434](https://github.com/feathersjs/feathers/issues/3434)) ([1499ccc](https://github.com/feathersjs/feathers/commit/1499ccc41fb3ebba97b2c84e0cb19bc48ad3c651))
25
+ - **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
26
+ - **dependencies:** Update all dependencies ([#3139](https://github.com/feathersjs/feathers/issues/3139)) ([f24276e](https://github.com/feathersjs/feathers/commit/f24276e9a909e2e58a0730c730258ce1f70f4028))
27
+ - **dependencies:** Update all dependencies ([#3545](https://github.com/feathersjs/feathers/issues/3545)) ([221b92b](https://github.com/feathersjs/feathers/commit/221b92bb0ee5d54fb1036742968797cb02e56da2))
28
+ - **dependencies:** Update all dependencies ([#3625](https://github.com/feathersjs/feathers/issues/3625)) ([2698e4e](https://github.com/feathersjs/feathers/commit/2698e4e2996fbf479d82435938d907bc3d5b583a))
29
+ - **dependencies:** Update dependencies ([#3571](https://github.com/feathersjs/feathers/issues/3571)) ([ad611cb](https://github.com/feathersjs/feathers/commit/ad611cb6ffb1dc31d603ba5817331318c5a23217))
30
+ - Do not error in authentication client on logout ([#1473](https://github.com/feathersjs/feathers/issues/1473)) ([8211b98](https://github.com/feathersjs/feathers/commit/8211b98f90ba26cc0b885b41eed85ab020681a7f))
31
+ - Guard against null in client side logout function ([#1319](https://github.com/feathersjs/feathers/issues/1319)) ([fa7f057](https://github.com/feathersjs/feathers/commit/fa7f0570fbd11b67ab4799d8f6195dba19adcd16))
32
+ - Handle error oAuth redirect in authentication client ([#1307](https://github.com/feathersjs/feathers/issues/1307)) ([12d48ee](https://github.com/feathersjs/feathers/commit/12d48eee158854f5b5cd92edf3c3f303ed9219b7))
33
+ - **hooks:** Migrate built-in hooks and allow backwards compatibility ([#2358](https://github.com/feathersjs/feathers/issues/2358)) ([759c5a1](https://github.com/feathersjs/feathers/commit/759c5a19327a731af965c3604119393b3d09a406))
34
+ - Improve authentication client default storage initialization ([#1613](https://github.com/feathersjs/feathers/issues/1613)) ([d7f5107](https://github.com/feathersjs/feathers/commit/d7f5107ef76297b4ca6db580afc5e2b372f5ee4d))
35
+ - **knex:** Update all dependencies and Knex peer ([#3308](https://github.com/feathersjs/feathers/issues/3308)) ([d2f9860](https://github.com/feathersjs/feathers/commit/d2f986036c4741cce2339d8abbcc6b2eb037a12a))
36
+ - **koa:** Use extended query parser for compatibility ([#2397](https://github.com/feathersjs/feathers/issues/2397)) ([b2944ba](https://github.com/feathersjs/feathers/commit/b2944bac3ec6d5ecc80dc518cd4e58093692db74))
37
+ - Make Mocha a proper devDependency for every repository ([#1053](https://github.com/feathersjs/feathers/issues/1053)) ([9974803](https://github.com/feathersjs/feathers/commit/99748032a6571a792883be31ec955a749629d0da))
38
+ - Make oAuth paths more consistent and improve authentication client ([#1377](https://github.com/feathersjs/feathers/issues/1377)) ([adb2543](https://github.com/feathersjs/feathers/commit/adb254354a5dc2c0813e341fbb3f9b3bb8124a0e))
39
+ - Make sure all Readme files are up to date ([#3154](https://github.com/feathersjs/feathers/issues/3154)) ([a5f0b38](https://github.com/feathersjs/feathers/commit/a5f0b38bbf2a11486415a39533bcc6c67fb51e3e))
40
+ - Merge httpStrategies and authStrategies option ([#1308](https://github.com/feathersjs/feathers/issues/1308)) ([afa4d55](https://github.com/feathersjs/feathers/commit/afa4d55c0541163617b2cb7da6e192ad9766073e))
41
+ - Only remove token on NotAuthenticated error in authentication client and handle error better ([#1525](https://github.com/feathersjs/feathers/issues/1525)) ([13a8758](https://github.com/feathersjs/feathers/commit/13a8758f11ca52d3251a5c365cc17f8ddb037351))
42
+ - **package:** update debug to version 3.0.0 ([#61](https://github.com/feathersjs/feathers/issues/61)) ([6f5009c](https://github.com/feathersjs/feathers/commit/6f5009ccb201093b8f4e3303be94d442d49701d7))
43
+ - Rename jwtStrategies option to authStrategies ([#1305](https://github.com/feathersjs/feathers/issues/1305)) ([4aee151](https://github.com/feathersjs/feathers/commit/4aee151950a363a9cef1b584409fbf478ae28e32))
44
+ - Small improvements in dependencies and code sturcture ([#1562](https://github.com/feathersjs/feathers/issues/1562)) ([42c13e2](https://github.com/feathersjs/feathers/commit/42c13e220cac7dc0def1108616f763d5339d524c))
45
+ - **socketio-client:** Throw an error and show a warning if someone tries to use socket.io-client v3 ([#2135](https://github.com/feathersjs/feathers/issues/2135)) ([cc3521c](https://github.com/feathersjs/feathers/commit/cc3521c935a1cbd690e29b7057998e3898f282db))
46
+ - **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
47
+ - **typescript:** Overall typing improvements ([#2478](https://github.com/feathersjs/feathers/issues/2478)) ([b8eb804](https://github.com/feathersjs/feathers/commit/b8eb804158556d9651a8607e3c3fda15e0bfd110))
48
+ - Typing improvements ([#1580](https://github.com/feathersjs/feathers/issues/1580)) ([7818aec](https://github.com/feathersjs/feathers/commit/7818aec0dd9fe7af6ec6c6c4971df8426ef4a5d6))
49
+ - Typings fix and improvements. ([#1364](https://github.com/feathersjs/feathers/issues/1364)) ([515b916](https://github.com/feathersjs/feathers/commit/515b916b6ae286c22e5bccdfdd6885a5ee9d2743))
50
+ - Update adapter common tests ([#1135](https://github.com/feathersjs/feathers/issues/1135)) ([8166dda](https://github.com/feathersjs/feathers/commit/8166ddad144350f224d0fd9fc66084d28706326c))
51
+ - Update all dependencies ([7d53a00](https://github.com/feathersjs/feathers/commit/7d53a00776f7301d9349e6d652656ee80b1cb556))
52
+ - Update all dependencies ([#3024](https://github.com/feathersjs/feathers/issues/3024)) ([283dc47](https://github.com/feathersjs/feathers/commit/283dc4798d85584bc031e6e54b83b4ea77d1edd0))
53
+ - Update all dependencies ([#3613](https://github.com/feathersjs/feathers/issues/3613)) ([5136bbd](https://github.com/feathersjs/feathers/commit/5136bbd2e2eeb4e6579e07c9e914006629542363))
54
+ - Update all dependencies to latest ([#1206](https://github.com/feathersjs/feathers/issues/1206)) ([e51e0f6](https://github.com/feathersjs/feathers/commit/e51e0f62d0f338fb59bd0d39952d99c2904a0c3f))
55
+ - Update dependencies ([#3584](https://github.com/feathersjs/feathers/issues/3584)) ([119fa4e](https://github.com/feathersjs/feathers/commit/119fa4e1ade8b0078aa235083d566e2538b3a084))
56
+ - Update dependencies and fix tests ([#1373](https://github.com/feathersjs/feathers/issues/1373)) ([d743a7f](https://github.com/feathersjs/feathers/commit/d743a7ff7b0f9f94aa6fa8e29d0c816469c9b8ab))
57
+ - Update Grant usage and other dependencies ([#2264](https://github.com/feathersjs/feathers/issues/2264)) ([7b0f8fa](https://github.com/feathersjs/feathers/commit/7b0f8fad252419ed0ad0bf259cdf3104d322ab60))
58
+ - Update version number check ([53575c5](https://github.com/feathersjs/feathers/commit/53575c5441b94e78770dab5107bc44a7b8d27763))
59
+
60
+ ### chore
61
+
62
+ - **package:** Remove @feathersjs/primus packages from core ([#1919](https://github.com/feathersjs/feathers/issues/1919)) ([d20b7d5](https://github.com/feathersjs/feathers/commit/d20b7d5a70f4d3306e294696156e8aa0337c35e9)), closes [#1899](https://github.com/feathersjs/feathers/issues/1899)
63
+
64
+ ### Features
65
+
66
+ - @feathersjs/authentication-oauth ([#1299](https://github.com/feathersjs/feathers/issues/1299)) ([656bae7](https://github.com/feathersjs/feathers/commit/656bae7875e03c45497fb3dd340f04e89cab0a20))
67
+ - **adapter-commons:** Add support for params.adapter option and move memory adapter to @feathersjs/memory ([#2367](https://github.com/feathersjs/feathers/issues/2367)) ([a43e7da](https://github.com/feathersjs/feathers/commit/a43e7da22b6b981a96d1321736ea9a0cb924fb4f))
68
+ - Add authentication through oAuth redirect to authentication client ([#1301](https://github.com/feathersjs/feathers/issues/1301)) ([35d8043](https://github.com/feathersjs/feathers/commit/35d8043591279842a62d38781cfe7b916f9a2593))
69
+ - Add AuthenticationBaseStrategy and make authentication option handling more explicit ([#1284](https://github.com/feathersjs/feathers/issues/1284)) ([2667d92](https://github.com/feathersjs/feathers/commit/2667d92efb087cfbe75f64e9ba5c787cec5eb260))
70
+ - Add TypeScript definitions ([#1275](https://github.com/feathersjs/feathers/issues/1275)) ([9dd6713](https://github.com/feathersjs/feathers/commit/9dd671301ae0463968ade0f6eb0c82356adcc89d))
71
+ - Application service types default to any ([#1566](https://github.com/feathersjs/feathers/issues/1566)) ([d93ba9a](https://github.com/feathersjs/feathers/commit/d93ba9a17edd20d3397bb00f4f6e82e804e42ed6))
72
+ - Authentication v3 client ([#1240](https://github.com/feathersjs/feathers/issues/1240)) ([65b43bd](https://github.com/feathersjs/feathers/commit/65b43bd3c67ce3ec091a02a78f3678ff2a14a9b6))
73
+ - Authentication v3 core server implementation ([#1205](https://github.com/feathersjs/feathers/issues/1205)) ([1bd7591](https://github.com/feathersjs/feathers/commit/1bd7591548da58c1c0facb2a733ce32524743ff3))
74
+ - **authentication-client:** Throw separate OauthError in authentication client ([#2189](https://github.com/feathersjs/feathers/issues/2189)) ([fa45ec5](https://github.com/feathersjs/feathers/commit/fa45ec520b21834e103e6fe4200b06dced56c0e6))
75
+ - **cli:** Add authentication client to generated client ([#2801](https://github.com/feathersjs/feathers/issues/2801)) ([bd59f91](https://github.com/feathersjs/feathers/commit/bd59f91b45a01c2eea0c4386e567f4de5aa6ad99))
76
+ - **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
77
+ - **dependencies:** Remove direct debug dependency ([#2296](https://github.com/feathersjs/feathers/issues/2296)) ([501d416](https://github.com/feathersjs/feathers/commit/501d4164d30c6a126906dc640cdfdc82207ba34a))
78
+ - ES module v5 compatibility layer for v6 ([#3607](https://github.com/feathersjs/feathers/issues/3607)) ([1dfff88](https://github.com/feathersjs/feathers/commit/1dfff8832eedca895eeaafd7f3acf0f8a27be23c))
79
+ - Feathers v5 core refactoring and features ([#2255](https://github.com/feathersjs/feathers/issues/2255)) ([2dafb7c](https://github.com/feathersjs/feathers/commit/2dafb7ce14ba57406aeec13d10ca45b1e709bee9))
80
+ - **generators:** Move core code generators to shared generators package ([#2982](https://github.com/feathersjs/feathers/issues/2982)) ([0328d22](https://github.com/feathersjs/feathers/commit/0328d2292153870bc43958f73d2c6f288a8cec17))
81
+ - Let strategies handle the connection ([#1510](https://github.com/feathersjs/feathers/issues/1510)) ([4329feb](https://github.com/feathersjs/feathers/commit/4329febfb0936f74f8e16fec829a72b18deb61ce))
82
+ - v5 compatibility layer for v6 ([7415d5a](https://github.com/feathersjs/feathers/commit/7415d5addbb9943cfaf8a7a942ca542c6d99bceb))
83
+
84
+ ### BREAKING CHANGES
85
+
86
+ - All packages are now ES modules only
87
+ - **package:** Remove primus packages to be moved into the ecosystem.
88
+ - Rewrite for authentication v3
89
+
90
+ ## [5.0.39](https://github.com/feathersjs/feathers/compare/v5.0.38...v5.0.39) (2026-01-31)
91
+
92
+ **Note:** Version bump only for package @feathersjs/authentication-client
93
+
94
+ ## [5.0.38](https://github.com/feathersjs/feathers/compare/v5.0.37...v5.0.38) (2026-01-31)
95
+
96
+ **Note:** Version bump only for package @feathersjs/authentication-client
97
+
6
98
  ## [5.0.37](https://github.com/feathersjs/feathers/compare/v5.0.36...v5.0.37) (2025-11-10)
7
99
 
8
100
  **Note:** Version bump only for package @feathersjs/authentication-client
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2024 Feathers Contributors
3
+ Copyright (c) 2025 Feathers Contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
package/README.md CHANGED
@@ -18,6 +18,6 @@ Refer to the [Feathers authentication client API documentation](https://feathers
18
18
 
19
19
  ## License
20
20
 
21
- Copyright (c) 2024 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
21
+ Copyright (c) 2025 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
22
22
 
23
23
  Licensed under the [MIT license](LICENSE).
package/lib/core.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { FeathersError } from '@feathersjs/errors';
2
- import { Application, Params } from '@feathersjs/feathers';
3
- import { AuthenticationRequest, AuthenticationResult } from '@feathersjs/authentication';
4
- import { Storage } from './storage';
2
+ import type { Application, Params } from '@feathersjs/feathers';
3
+ import type { AuthenticationRequest, AuthenticationResult } from '@feathersjs/authentication';
4
+ import { Storage } from './storage.js';
5
5
  export type ClientConstructor = new (app: Application, options: AuthenticationClientOptions) => AuthenticationClient;
6
6
  export interface AuthenticationClientOptions {
7
7
  storage: Storage;
@@ -19,7 +19,7 @@ export declare class AuthenticationClient {
19
19
  authenticated: boolean;
20
20
  options: AuthenticationClientOptions;
21
21
  constructor(app: Application, options: AuthenticationClientOptions);
22
- get service(): import("@feathersjs/feathers").FeathersService<Application<any, any>, import("@feathersjs/feathers").Service<any, Partial<any>, Params<import("@feathersjs/feathers").Query>, Partial<Partial<any>>>>;
22
+ get service(): import("feathers").FeathersService<Application<any, any>, import("feathers").Service<any, Partial<any>, Params<import("feathers").Query>, Partial<Partial<any>>>>;
23
23
  get storage(): Storage;
24
24
  handleSocket(socket: any): void;
25
25
  /**
package/lib/core.js CHANGED
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthenticationClient = void 0;
4
- const errors_1 = require("@feathersjs/errors");
5
- const storage_1 = require("./storage");
6
- class OauthError extends errors_1.FeathersError {
1
+ import { NotAuthenticated, FeathersError } from '@feathersjs/errors';
2
+ import { StorageWrapper } from './storage.js';
3
+ class OauthError extends FeathersError {
7
4
  constructor(message, data) {
8
5
  super(message, 'OauthError', 401, 'oauth-error', data);
9
6
  }
@@ -17,10 +14,10 @@ const getMatch = (location, key) => {
17
14
  }
18
15
  return [null, regex];
19
16
  };
20
- class AuthenticationClient {
17
+ export class AuthenticationClient {
21
18
  constructor(app, options) {
22
19
  const socket = app.io;
23
- const storage = new storage_1.StorageWrapper(app.get('storage') || options.storage);
20
+ const storage = new StorageWrapper(app.get('storage') || options.storage);
24
21
  this.app = app;
25
22
  this.options = options;
26
23
  this.authenticated = false;
@@ -128,7 +125,7 @@ class AuthenticationClient {
128
125
  if (!authPromise || force === true) {
129
126
  authPromise = this.getAccessToken().then((accessToken) => {
130
127
  if (!accessToken) {
131
- return this.handleError(new errors_1.NotAuthenticated('No accessToken found in storage'), 'authenticate');
128
+ return this.handleError(new NotAuthenticated('No accessToken found in storage'), 'authenticate');
132
129
  }
133
130
  return this.authenticate({
134
131
  strategy: strategy || this.options.jwtStrategy,
@@ -180,5 +177,4 @@ class AuthenticationClient {
180
177
  .catch((error) => this.handleError(error, 'logout'));
181
178
  }
182
179
  }
183
- exports.AuthenticationClient = AuthenticationClient;
184
180
  //# sourceMappingURL=core.js.map
package/lib/core.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;AAAA,+CAAoE;AAGpE,uCAAmD;AAEnD,MAAM,UAAW,SAAQ,sBAAa;IACpC,YAAY,OAAe,EAAE,IAAU;QACrC,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,CAAC,CAAA;IACxD,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,CAAC,QAAkB,EAAE,GAAW,EAAoB,EAAE;IACrE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC,CAAA;IACjD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAE/D,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,KAAK,CAAA;QAEvB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IACvB,CAAC;IAED,OAAO,CAAC,IAA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AAK,CAAC,CAAC,KAAoB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAA;QAE3E,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAA;QAEvC,OAAO,OAAO,CAAA;IAChB,CAAC;IAED;;;;;OAKG;IACH,MAAM;QACJ,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;aACnD,IAAI,CAAC,GAAG,EAAE,CACT,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,UAAgC,EAAE,EAAE,CAClE,IAAI,CAAC,iBAAiB,EAAE;aACrB,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;aACxB,IAAI,CAAC,GAAG,EAAE;YACT,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;YAEnC,OAAO,UAAU,CAAA;QACnB,CAAC,CAAC,CACL,CACF;aACA,KAAK,CAAC,CAAC,KAAoB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAA;IACvE,CAAC;CACF"}
@@ -1,2 +1,2 @@
1
- import { HookContext, NextFunction } from '@feathersjs/feathers';
1
+ import type { HookContext, NextFunction } from '@feathersjs/feathers';
2
2
  export declare const authentication: () => (context: HookContext, next: NextFunction) => Promise<any>;
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.authentication = void 0;
4
- const commons_1 = require("@feathersjs/commons");
5
- const authentication = () => {
1
+ import { stripSlashes } from '@feathersjs/commons';
2
+ export const authentication = () => {
6
3
  return (context, next) => {
7
4
  const { app, params, path, method, app: { authentication: service } } = context;
8
- if ((0, commons_1.stripSlashes)(service.options.path) === path && method === 'create') {
5
+ if (stripSlashes(service.options.path) === path && method === 'create') {
9
6
  return next();
10
7
  }
11
8
  return Promise.resolve(app.get('authentication'))
@@ -17,5 +14,4 @@ const authentication = () => {
17
14
  .then(next);
18
15
  };
19
16
  };
20
- exports.authentication = authentication;
21
17
  //# sourceMappingURL=authentication.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../src/hooks/authentication.ts"],"names":[],"mappings":";;;AACA,iDAAkD;AAE3C,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,CAAC,OAAoB,EAAE,IAAkB,EAAE,EAAE;QAClD,MAAM,EACJ,GAAG,EACH,MAAM,EACN,IAAI,EACJ,MAAM,EACN,GAAG,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,EACjC,GAAG,OAAO,CAAA;QAEX,IAAI,IAAA,sBAAY,EAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YACvE,OAAO,IAAI,EAAE,CAAA;QACf,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;aAC9C,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;YACnB,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,CAAA;YACxD,CAAC;QACH,CAAC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAA;IACf,CAAC,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,cAAc,kBAsB1B"}
1
+ {"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../src/hooks/authentication.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,CAAC,OAAoB,EAAE,IAAkB,EAAE,EAAE;QAClD,MAAM,EACJ,GAAG,EACH,MAAM,EACN,IAAI,EACJ,MAAM,EACN,GAAG,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,EACjC,GAAG,OAAO,CAAA;QAEX,IAAI,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YACvE,OAAO,IAAI,EAAE,CAAA;QACf,CAAC;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;aAC9C,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;YACnB,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,CAAA;YACxD,CAAC;QACH,CAAC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAA;IACf,CAAC,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
- export { authentication } from './authentication';
2
- export { populateHeader } from './populate-header';
1
+ export { authentication } from './authentication.js';
2
+ export { populateHeader } from './populate-header.js';
@@ -1,8 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.populateHeader = exports.authentication = void 0;
4
- var authentication_1 = require("./authentication");
5
- Object.defineProperty(exports, "authentication", { enumerable: true, get: function () { return authentication_1.authentication; } });
6
- var populate_header_1 = require("./populate-header");
7
- Object.defineProperty(exports, "populateHeader", { enumerable: true, get: function () { return populate_header_1.populateHeader; } });
1
+ export { authentication } from './authentication.js';
2
+ export { populateHeader } from './populate-header.js';
8
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,qDAAkD;AAAzC,iHAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,2 +1,2 @@
1
- import { HookContext, NextFunction } from '@feathersjs/feathers';
1
+ import type { HookContext, NextFunction } from '@feathersjs/feathers';
2
2
  export declare const populateHeader: () => (context: HookContext, next: NextFunction) => Promise<any>;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.populateHeader = void 0;
4
- const populateHeader = () => {
1
+ export const populateHeader = () => {
5
2
  return (context, next) => {
6
3
  const { app, params: { accessToken } } = context;
7
4
  const authentication = app.authentication;
@@ -16,5 +13,4 @@ const populateHeader = () => {
16
13
  return next();
17
14
  };
18
15
  };
19
- exports.populateHeader = populateHeader;
20
16
  //# sourceMappingURL=populate-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"populate-header.js","sourceRoot":"","sources":["../../src/hooks/populate-header.ts"],"names":[],"mappings":";;;AAEO,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,CAAC,OAAoB,EAAE,IAAkB,EAAE,EAAE;QAClD,MAAM,EACJ,GAAG,EACH,MAAM,EAAE,EAAE,WAAW,EAAE,EACxB,GAAG,OAAO,CAAA;QACX,MAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAA;QAEzC,+BAA+B;QAC/B,IAAI,GAAG,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC;YAC5B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,OAAO,CAAA;YACjD,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,WAAW,EAAE,CAAA;YAE7C,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CACpC,EAAE,EACF;gBACE,CAAC,MAAM,CAAC,EAAE,UAAU;aACrB,EACD,OAAO,CAAC,MAAM,CAAC,OAAO,CACvB,CAAA;QACH,CAAC;QAED,OAAO,IAAI,EAAE,CAAA;IACf,CAAC,CAAA;AACH,CAAC,CAAA;AAxBY,QAAA,cAAc,kBAwB1B"}
1
+ {"version":3,"file":"populate-header.js","sourceRoot":"","sources":["../../src/hooks/populate-header.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,OAAO,CAAC,OAAoB,EAAE,IAAkB,EAAE,EAAE;QAClD,MAAM,EACJ,GAAG,EACH,MAAM,EAAE,EAAE,WAAW,EAAE,EACxB,GAAG,OAAO,CAAA;QACX,MAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAA;QAEzC,+BAA+B;QAC/B,IAAI,GAAG,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC;YAC5B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,cAAc,CAAC,OAAO,CAAA;YACjD,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,WAAW,EAAE,CAAA;YAE7C,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CACpC,EAAE,EACF;gBACE,CAAC,MAAM,CAAC,EAAE,UAAU;aACrB,EACD,OAAO,CAAC,MAAM,CAAC,OAAO,CACvB,CAAA;QACH,CAAC;QAED,OAAO,IAAI,EAAE,CAAA;IACf,CAAC,CAAA;AACH,CAAC,CAAA"}
package/lib/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { AuthenticationClient, AuthenticationClientOptions } from './core';
2
- import * as hooks from './hooks';
3
- import { Application } from '@feathersjs/feathers';
4
- import { Storage, MemoryStorage, StorageWrapper } from './storage';
5
- declare module '@feathersjs/feathers/lib/declarations' {
1
+ import type { AuthenticationClientOptions } from './core.js';
2
+ import { AuthenticationClient } from './core.js';
3
+ import * as hooks from './hooks/index.js';
4
+ import type { Application } from '@feathersjs/feathers';
5
+ import { Storage, MemoryStorage, StorageWrapper } from './storage.js';
6
+ declare module '@feathersjs/feathers' {
6
7
  interface Application<Services, Settings> {
7
8
  io: any;
8
9
  rest?: any;
package/lib/index.js CHANGED
@@ -1,55 +1,16 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.defaults = exports.defaultStorage = exports.hooks = exports.MemoryStorage = exports.AuthenticationClient = exports.getDefaultStorage = void 0;
37
- const core_1 = require("./core");
38
- Object.defineProperty(exports, "AuthenticationClient", { enumerable: true, get: function () { return core_1.AuthenticationClient; } });
39
- const hooks = __importStar(require("./hooks"));
40
- exports.hooks = hooks;
41
- const storage_1 = require("./storage");
42
- Object.defineProperty(exports, "MemoryStorage", { enumerable: true, get: function () { return storage_1.MemoryStorage; } });
43
- const getDefaultStorage = () => {
1
+ import { AuthenticationClient } from './core.js';
2
+ import * as hooks from './hooks/index.js';
3
+ import { MemoryStorage, StorageWrapper } from './storage.js';
4
+ export const getDefaultStorage = () => {
44
5
  try {
45
- return new storage_1.StorageWrapper(window.localStorage);
6
+ return new StorageWrapper(window.localStorage);
46
7
  }
47
8
  catch (error) { }
48
- return new storage_1.MemoryStorage();
9
+ return new MemoryStorage();
49
10
  };
50
- exports.getDefaultStorage = getDefaultStorage;
51
- exports.defaultStorage = (0, exports.getDefaultStorage)();
52
- exports.defaults = {
11
+ export { AuthenticationClient, MemoryStorage, hooks };
12
+ export const defaultStorage = getDefaultStorage();
13
+ export const defaults = {
53
14
  header: 'Authorization',
54
15
  scheme: 'Bearer',
55
16
  storageKey: 'feathers-jwt',
@@ -57,11 +18,11 @@ exports.defaults = {
57
18
  locationErrorKey: 'error',
58
19
  jwtStrategy: 'jwt',
59
20
  path: '/authentication',
60
- Authentication: core_1.AuthenticationClient,
61
- storage: exports.defaultStorage
21
+ Authentication: AuthenticationClient,
22
+ storage: defaultStorage
62
23
  };
63
24
  const init = (_options = {}) => {
64
- const options = Object.assign({}, exports.defaults, _options);
25
+ const options = Object.assign({}, defaults, _options);
65
26
  const { Authentication } = options;
66
27
  return (app) => {
67
28
  const authentication = new Authentication(app, options);
@@ -72,7 +33,7 @@ const init = (_options = {}) => {
72
33
  app.hooks([hooks.authentication(), hooks.populateHeader()]);
73
34
  };
74
35
  };
75
- exports.default = init;
36
+ export default init;
76
37
  if (typeof module !== 'undefined') {
77
38
  module.exports = Object.assign(init, module.exports);
78
39
  }
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCA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cAAc;CACxB,CAAA;AAED,MAAM,IAAI,GAAG,CAAC,WAAiD,EAAE,EAAE,EAAE;IACnE,MAAM,OAAO,GAAgC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAClF,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAA;IAElC,OAAO,CAAC,GAAgB,EAAE,EAAE;QAC1B,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QAEvD,GAAG,CAAC,cAAc,GAAG,cAAc,CAAA;QACnC,GAAG,CAAC,YAAY,GAAG,cAAc,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QACnE,GAAG,CAAC,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QACvE,GAAG,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QAEvD,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;IAC7D,CAAC,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;AACtD,CAAC"}
package/lib/storage.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StorageWrapper = exports.MemoryStorage = void 0;
4
- class MemoryStorage {
1
+ export class MemoryStorage {
5
2
  constructor() {
6
3
  this.store = {};
7
4
  }
@@ -17,8 +14,7 @@ class MemoryStorage {
17
14
  return Promise.resolve(value);
18
15
  }
19
16
  }
20
- exports.MemoryStorage = MemoryStorage;
21
- class StorageWrapper {
17
+ export class StorageWrapper {
22
18
  constructor(storage) {
23
19
  this.storage = storage;
24
20
  }
@@ -35,5 +31,4 @@ class StorageWrapper {
35
31
  return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.removeItem(key));
36
32
  }
37
33
  }
38
- exports.StorageWrapper = StorageWrapper;
39
34
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":";;;AAMA,MAAa,aAAa;IAGxB;QACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAA;IACjB,CAAC;IAED,OAAO,CAAC,GAAW;QACjB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACzC,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAU;QAC7B,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAA;IACnD,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAEtB,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;CACF;AAtBD,sCAsBC;AAED,MAAa,cAAc;IAGzB,YAAY,OAAY;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,OAAO,CAAC,GAAW;;QACjB,OAAO,OAAO,CAAC,OAAO,CAAC,MAAA,IAAI,CAAC,OAAO,0CAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;IACpD,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAU;;QAC7B,OAAO,OAAO,CAAC,OAAO,CAAC,MAAA,IAAI,CAAC,OAAO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EAAE,KAAK,CAAC,CAAC,CAAA;IAC3D,CAAC;IAED,UAAU,CAAC,GAAW;;QACpB,OAAO,OAAO,CAAC,OAAO,CAAC,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAA;IACvD,CAAC;CACF"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@feathersjs/authentication-client",
3
3
  "description": "The authentication plugin for feathers-client",
4
- "version": "5.0.37",
4
+ "version": "6.0.0-pre.0",
5
5
  "homepage": "https://feathersjs.com",
6
- "main": "lib/",
7
- "types": "lib/",
6
+ "main": "lib/index.js",
7
+ "type": "module",
8
8
  "keywords": [
9
9
  "feathers",
10
10
  "feathers-plugin"
@@ -29,7 +29,7 @@
29
29
  "url": "https://github.com/feathersjs/feathers/issues"
30
30
  },
31
31
  "engines": {
32
- "node": ">= 12"
32
+ "node": ">= 20"
33
33
  },
34
34
  "files": [
35
35
  "CHANGELOG.md",
@@ -53,25 +53,25 @@
53
53
  "access": "public"
54
54
  },
55
55
  "dependencies": {
56
- "@feathersjs/authentication": "^5.0.37",
57
- "@feathersjs/commons": "^5.0.37",
58
- "@feathersjs/errors": "^5.0.37",
59
- "@feathersjs/feathers": "^5.0.37"
56
+ "@feathersjs/authentication": "^6.0.0-pre.0",
57
+ "@feathersjs/commons": "^6.0.0-pre.0",
58
+ "@feathersjs/errors": "^6.0.0-pre.0",
59
+ "@feathersjs/feathers": "^6.0.0-pre.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@feathersjs/authentication-local": "^5.0.37",
63
- "@feathersjs/express": "^5.0.37",
64
- "@feathersjs/memory": "^5.0.37",
65
- "@feathersjs/rest-client": "^5.0.37",
66
- "@feathersjs/socketio": "^5.0.37",
67
- "@feathersjs/socketio-client": "^5.0.37",
62
+ "@feathersjs/authentication-local": "^6.0.0-pre.0",
63
+ "@feathersjs/express": "^6.0.0-pre.0",
64
+ "@feathersjs/memory": "^6.0.0-pre.0",
65
+ "@feathersjs/rest-client": "^6.0.0-pre.0",
66
+ "@feathersjs/socketio": "^6.0.0-pre.0",
67
+ "@feathersjs/socketio-client": "^6.0.0-pre.0",
68
68
  "@types/mocha": "^10.0.10",
69
- "@types/node": "^24.10.0",
70
- "axios": "^1.13.2",
69
+ "@types/node": "^25.1.0",
70
+ "axios": "^1.13.4",
71
71
  "mocha": "^11.7.5",
72
72
  "shx": "^0.4.0",
73
73
  "ts-node": "^10.9.2",
74
74
  "typescript": "^5.9.3"
75
75
  },
76
- "gitHead": "1d38e4a21e9ed5da31d524e5015f039b75668ec0"
76
+ "gitHead": "8fad4bb3d393794fb98fa5fe7cfc327661fedbd2"
77
77
  }
package/src/core.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { NotAuthenticated, FeathersError } from '@feathersjs/errors'
2
- import { Application, Params } from '@feathersjs/feathers'
3
- import { AuthenticationRequest, AuthenticationResult } from '@feathersjs/authentication'
4
- import { Storage, StorageWrapper } from './storage'
2
+ import type { Application, Params } from '@feathersjs/feathers'
3
+ import type { AuthenticationRequest, AuthenticationResult } from '@feathersjs/authentication'
4
+ import { Storage, StorageWrapper } from './storage.js'
5
5
 
6
6
  class OauthError extends FeathersError {
7
7
  constructor(message: string, data?: any) {
@@ -1,4 +1,4 @@
1
- import { HookContext, NextFunction } from '@feathersjs/feathers'
1
+ import type { HookContext, NextFunction } from '@feathersjs/feathers'
2
2
  import { stripSlashes } from '@feathersjs/commons'
3
3
 
4
4
  export const authentication = () => {
@@ -1,2 +1,2 @@
1
- export { authentication } from './authentication'
2
- export { populateHeader } from './populate-header'
1
+ export { authentication } from './authentication.js'
2
+ export { populateHeader } from './populate-header.js'
@@ -1,5 +1,4 @@
1
- import { HookContext, NextFunction } from '@feathersjs/feathers'
2
-
1
+ import type { HookContext, NextFunction } from '@feathersjs/feathers'
3
2
  export const populateHeader = () => {
4
3
  return (context: HookContext, next: NextFunction) => {
5
4
  const {
package/src/index.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { AuthenticationClient, AuthenticationClientOptions } from './core'
2
- import * as hooks from './hooks'
3
- import { Application } from '@feathersjs/feathers'
4
- import { Storage, MemoryStorage, StorageWrapper } from './storage'
1
+ import type { AuthenticationClientOptions } from './core.js'
2
+ import { AuthenticationClient } from './core.js'
3
+ import * as hooks from './hooks/index.js'
4
+ import type { Application } from '@feathersjs/feathers'
5
+ import { Storage, MemoryStorage, StorageWrapper } from './storage.js'
5
6
 
6
- declare module '@feathersjs/feathers/lib/declarations' {
7
+ declare module '@feathersjs/feathers' {
7
8
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
9
  interface Application<Services, Settings> {
9
10
  // eslint-disable-line