@thunderid/node 0.0.5 → 0.1.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.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/dist/ThunderIDNodeClient.d.ts +18 -8
  3. package/dist/ThunderIDNodeClient.d.ts.map +1 -1
  4. package/dist/cjs/index.cjs +125 -592
  5. package/dist/index.d.ts +9 -6
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +123 -579
  8. package/dist/{__legacy__/constants/logger-config.d.ts → models/AuthURLCallback.d.ts} +9 -15
  9. package/dist/models/AuthURLCallback.d.ts.map +1 -0
  10. package/dist/models/config.d.ts +27 -14
  11. package/dist/models/config.d.ts.map +1 -1
  12. package/dist/{__legacy__/stores/memory-cache-store.d.ts → stores/MemoryCacheStore.d.ts} +7 -2
  13. package/dist/stores/MemoryCacheStore.d.ts.map +1 -0
  14. package/dist/{__legacy__/utils/crypto-utils.d.ts → utils/NodeCryptoUtils.d.ts} +7 -8
  15. package/dist/utils/NodeCryptoUtils.d.ts.map +1 -0
  16. package/dist/{__legacy__/utils/session-utils.d.ts → utils/SessionUtils.d.ts} +21 -2
  17. package/dist/utils/SessionUtils.d.ts.map +1 -0
  18. package/dist/utils/getSessionCookieOptions.d.ts +2 -22
  19. package/dist/utils/getSessionCookieOptions.d.ts.map +1 -1
  20. package/package.json +9 -7
  21. package/dist/__legacy__/client.d.ts +0 -355
  22. package/dist/__legacy__/client.d.ts.map +0 -1
  23. package/dist/__legacy__/constants/index.d.ts +0 -20
  24. package/dist/__legacy__/constants/index.d.ts.map +0 -1
  25. package/dist/__legacy__/constants/logger-config.d.ts.map +0 -1
  26. package/dist/__legacy__/constants/uuid-config.d.ts +0 -19
  27. package/dist/__legacy__/constants/uuid-config.d.ts.map +0 -1
  28. package/dist/__legacy__/core/authentication.d.ts +0 -46
  29. package/dist/__legacy__/core/authentication.d.ts.map +0 -1
  30. package/dist/__legacy__/core/index.d.ts +0 -19
  31. package/dist/__legacy__/core/index.d.ts.map +0 -1
  32. package/dist/__legacy__/models/index.d.ts +0 -20
  33. package/dist/__legacy__/models/index.d.ts.map +0 -1
  34. package/dist/__legacy__/models/session-data.d.ts +0 -23
  35. package/dist/__legacy__/models/session-data.d.ts.map +0 -1
  36. package/dist/__legacy__/models/url-callback.d.ts +0 -19
  37. package/dist/__legacy__/models/url-callback.d.ts.map +0 -1
  38. package/dist/__legacy__/stores/index.d.ts +0 -19
  39. package/dist/__legacy__/stores/index.d.ts.map +0 -1
  40. package/dist/__legacy__/stores/memory-cache-store.d.ts.map +0 -1
  41. package/dist/__legacy__/utils/crypto-utils.d.ts.map +0 -1
  42. package/dist/__legacy__/utils/index.d.ts +0 -20
  43. package/dist/__legacy__/utils/index.d.ts.map +0 -1
  44. package/dist/__legacy__/utils/logger-utils.d.ts +0 -26
  45. package/dist/__legacy__/utils/logger-utils.d.ts.map +0 -1
  46. package/dist/__legacy__/utils/session-utils.d.ts.map +0 -1
  47. package/dist/models/cookies.d.ts +0 -59
  48. package/dist/models/cookies.d.ts.map +0 -1
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare const UUID_VERSION = 4;
19
- //# sourceMappingURL=uuid-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uuid-config.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/constants/uuid-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,YAAY,IAAI,CAAC"}
@@ -1,46 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { AuthClientConfig, TokenExchangeRequestConfig, StorageManager, IdToken, OIDCEndpoints, Storage, TokenResponse, User } from '@thunderid/javascript';
19
- import { AuthURLCallback } from '../models';
20
- export declare class ThunderIDNodeCore<T> {
21
- private auth;
22
- private cryptoUtils;
23
- private store;
24
- private storageManager;
25
- constructor(config: AuthClientConfig<T>, store?: Storage);
26
- signIn(authURLCallback: AuthURLCallback, userId: string, authorizationCode?: string, sessionState?: string, state?: string, signInConfig?: Record<string, string | boolean>): Promise<TokenResponse>;
27
- getAuthURL(userId: string, signInConfig?: Record<string, string | boolean>): Promise<string>;
28
- requestAccessToken(authorizationCode: string, sessionState: string, userId: string, state: string): Promise<TokenResponse>;
29
- getIdToken(userId: string): Promise<string>;
30
- refreshAccessToken(userId?: string): Promise<TokenResponse>;
31
- isSignedIn(userId: string): Promise<boolean>;
32
- signOut(userId: string): Promise<string>;
33
- getUser(userId: string): Promise<User>;
34
- getConfigData(): Promise<AuthClientConfig<T>>;
35
- getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
36
- getDecodedIdToken(userId?: string, idToken?: string): Promise<IdToken>;
37
- getAccessToken(userId?: string): Promise<string>;
38
- exchangeToken(config: TokenExchangeRequestConfig, userId?: string): Promise<TokenResponse | Response>;
39
- reInitialize(config: Partial<AuthClientConfig<T>>): Promise<void>;
40
- revokeAccessToken(userId?: string): Promise<Response>;
41
- static didSignOutFail(afterSignOutUrl: string): boolean;
42
- static isSignOutSuccessful(afterSignOutUrl: string): boolean;
43
- getStorageManager(): StorageManager<T>;
44
- decodeJwtToken<K = Record<string, unknown>>(token: string): Promise<K>;
45
- }
46
- //# sourceMappingURL=authentication.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/core/authentication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,gBAAgB,EAEhB,0BAA0B,EAC1B,cAAc,EACd,OAAO,EACP,aAAa,EAEb,OAAO,EACP,aAAa,EACb,IAAI,EACL,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAK1C,qBAAa,iBAAiB,CAAC,CAAC;IAC9B,OAAO,CAAC,IAAI,CAAyB;IAErC,OAAO,CAAC,WAAW,CAAS;IAE5B,OAAO,CAAC,KAAK,CAAU;IAEvB,OAAO,CAAC,cAAc,CAAoB;gBAE9B,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO;IAc3C,MAAM,CACjB,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,MAAM,EACd,iBAAiB,CAAC,EAAE,MAAM,EAC1B,YAAY,CAAC,EAAE,MAAM,EACrB,KAAK,CAAC,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAC9C,OAAO,CAAC,aAAa,CAAC;IAuDZ,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAe5F,kBAAkB,CAC7B,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,aAAa,CAAC;IAIZ,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAwB3C,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAI3D,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAwB5C,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBxC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItC,aAAa,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAI7C,0BAA0B,IAAI,OAAO,CAAC,aAAa,CAAC;IAIpD,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItE,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIhD,aAAa,CAAC,MAAM,EAAE,0BAA0B,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,QAAQ,CAAC;IAIrG,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;WAIpD,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO;WAIhD,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO;IAI5D,iBAAiB,IAAI,cAAc,CAAC,CAAC,CAAC;IAIhC,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CAGpF"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './authentication';
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,kBAAkB,CAAC"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './url-callback';
19
- export * from './session-data';
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { TokenResponse } from '@thunderid/javascript';
19
- export interface NodeSessionData extends TokenResponse {
20
- createdAt: number;
21
- expired?: boolean;
22
- }
23
- //# sourceMappingURL=session-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session-data.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/session-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAEpD,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export type AuthURLCallback = (url: string) => void;
19
- //# sourceMappingURL=url-callback.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url-callback.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/url-callback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './memory-cache-store';
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/stores/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"memory-cache-store.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/stores/memory-cache-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAG9C,qBAAa,gBAAiB,YAAW,OAAO;IACjC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIrC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGpD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto-utils.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/utils/crypto-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,eAAgB,YAAW,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;;IAI7D;;;;OAIG;IAEI,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAI/C,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAItC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAIzC,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAI9C,SAAS,CACpB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,OAAO,CAAC,YAAY,CAAC,EAC1B,UAAU,EAAE,MAAM,EAAE,EACpB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,OAAO,CAAC;CAYpB"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './session-utils';
19
- export * from './logger-utils';
20
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare class Logger {
19
- static LOG_LEVEL: string;
20
- private constructor();
21
- static debug(message: string): void;
22
- static info(message: string): void;
23
- static warn(message: string): void;
24
- static error(message: string): void;
25
- }
26
- //# sourceMappingURL=logger-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger-utils.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/utils/logger-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAcH,qBAAa,MAAM;IACjB,MAAM,CAAC,SAAS,EAAE,MAAM,CAAsD;IAG9E,OAAO;WAEO,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;WAa5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;WAa3B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;WAa3B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAY3C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"session-utils.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/utils/session-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAMlD,qBAAa,YAAY;IAEvB,OAAO;WAEO,UAAU,IAAI,MAAM;WAKpB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;WAO5C,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;CAW1E"}
@@ -1,59 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- /**
19
- * Configuration options for cookie settings
20
- *
21
- * @typeParam CookieOptions - Interface for cookie configuration options
22
- *
23
- * @remarks
24
- * These options control how cookies are set and handled by the browser:
25
- * - Use `httpOnly` to prevent JavaScript access
26
- * - Set `secure` to true for HTTPS-only cookies
27
- * - Configure `sameSite` for cross-origin request handling
28
- * - Set `maxAge` to control cookie expiration
29
- *
30
- * @example
31
- * Setting secure cookie options:
32
- * ```ts
33
- * const options: CookieOptions = {
34
- * httpOnly: true,
35
- * secure: true,
36
- * sameSite: 'strict',
37
- * maxAge: 3600 // 1 hour
38
- * };
39
- * ```
40
- */
41
- export interface CookieOptions {
42
- /**
43
- * When true, makes the cookie inaccessible through JavaScript
44
- */
45
- httpOnly?: boolean;
46
- /**
47
- * Maximum age of the cookie in seconds
48
- */
49
- maxAge?: number;
50
- /**
51
- * Controls how the cookie behaves with cross-site requests
52
- */
53
- sameSite?: boolean | 'lax' | 'strict' | 'none';
54
- /**
55
- * When true, cookie will only be sent over HTTPS
56
- */
57
- secure?: boolean;
58
- }
59
- //# sourceMappingURL=cookies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../src/models/cookies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}