@shopsbuilder/auth-sdk 1.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 (84) hide show
  1. package/README.md +469 -0
  2. package/dist/README.md +469 -0
  3. package/dist/SaleorAccessTokenStorageHandler.d.mts +13 -0
  4. package/dist/SaleorAccessTokenStorageHandler.d.ts +13 -0
  5. package/dist/SaleorAccessTokenStorageHandler.js +50 -0
  6. package/dist/SaleorAccessTokenStorageHandler.mjs +8 -0
  7. package/dist/SaleorAuthClient.d.mts +52 -0
  8. package/dist/SaleorAuthClient.d.ts +52 -0
  9. package/dist/SaleorAuthClient.js +464 -0
  10. package/dist/SaleorAuthClient.mjs +13 -0
  11. package/dist/SaleorExternalAuth.d.mts +29 -0
  12. package/dist/SaleorExternalAuth.d.ts +29 -0
  13. package/dist/SaleorExternalAuth.js +198 -0
  14. package/dist/SaleorExternalAuth.mjs +12 -0
  15. package/dist/SaleorRefreshTokenStorageHandler.d.mts +24 -0
  16. package/dist/SaleorRefreshTokenStorageHandler.d.ts +24 -0
  17. package/dist/SaleorRefreshTokenStorageHandler.js +83 -0
  18. package/dist/SaleorRefreshTokenStorageHandler.mjs +12 -0
  19. package/dist/chunk-263DHBMK.mjs +56 -0
  20. package/dist/chunk-74GMXOK4.mjs +13 -0
  21. package/dist/chunk-77CRMKFX.mjs +12 -0
  22. package/dist/chunk-7JTFMRQS.mjs +105 -0
  23. package/dist/chunk-BRRF6LN3.mjs +224 -0
  24. package/dist/chunk-BZFBMGPG.mjs +25 -0
  25. package/dist/chunk-K5MTKW5C.mjs +16 -0
  26. package/dist/chunk-KLIEZ4V4.mjs +10 -0
  27. package/dist/chunk-NAQNA6DI.mjs +20 -0
  28. package/dist/chunk-Q3UFWDCC.mjs +38 -0
  29. package/dist/chunk-T35JF4IS.mjs +59 -0
  30. package/dist/chunk-UDLCOX6B.mjs +49 -0
  31. package/dist/chunk-WJVMUY3P.mjs +33 -0
  32. package/dist/graphql.d.mts +11 -0
  33. package/dist/graphql.d.ts +11 -0
  34. package/dist/graphql.js +40 -0
  35. package/dist/graphql.mjs +6 -0
  36. package/dist/index.d.mts +5 -0
  37. package/dist/index.d.ts +5 -0
  38. package/dist/index.js +524 -0
  39. package/dist/index.mjs +23 -0
  40. package/dist/mutations.d.mts +12 -0
  41. package/dist/mutations.d.ts +12 -0
  42. package/dist/mutations.js +145 -0
  43. package/dist/mutations.mjs +17 -0
  44. package/dist/next/handler.d.mts +9 -0
  45. package/dist/next/handler.d.ts +9 -0
  46. package/dist/next/handler.js +36 -0
  47. package/dist/next/handler.mjs +11 -0
  48. package/dist/next/index.d.mts +6 -0
  49. package/dist/next/index.d.ts +6 -0
  50. package/dist/next/index.js +38 -0
  51. package/dist/next/index.mjs +11 -0
  52. package/dist/next/server.d.mts +20 -0
  53. package/dist/next/server.d.ts +20 -0
  54. package/dist/next/server.js +79 -0
  55. package/dist/next/server.mjs +53 -0
  56. package/dist/react/SaleorAuthProvider.d.mts +10 -0
  57. package/dist/react/SaleorAuthProvider.d.ts +10 -0
  58. package/dist/react/SaleorAuthProvider.js +50 -0
  59. package/dist/react/SaleorAuthProvider.mjs +13 -0
  60. package/dist/react/context.d.mts +9 -0
  61. package/dist/react/context.d.ts +9 -0
  62. package/dist/react/context.js +46 -0
  63. package/dist/react/context.mjs +16 -0
  64. package/dist/react/index.d.mts +8 -0
  65. package/dist/react/index.d.ts +8 -0
  66. package/dist/react/index.js +291 -0
  67. package/dist/react/index.mjs +30 -0
  68. package/dist/react/useAuthChange.d.mts +8 -0
  69. package/dist/react/useAuthChange.d.ts +8 -0
  70. package/dist/react/useAuthChange.js +58 -0
  71. package/dist/react/useAuthChange.mjs +7 -0
  72. package/dist/react/useSaleorExternalAuth.d.mts +22 -0
  73. package/dist/react/useSaleorExternalAuth.d.ts +22 -0
  74. package/dist/react/useSaleorExternalAuth.js +227 -0
  75. package/dist/react/useSaleorExternalAuth.mjs +11 -0
  76. package/dist/types.d.mts +82 -0
  77. package/dist/types.d.ts +82 -0
  78. package/dist/types.js +34 -0
  79. package/dist/types.mjs +6 -0
  80. package/dist/utils.d.mts +28 -0
  81. package/dist/utils.d.ts +28 -0
  82. package/dist/utils.js +77 -0
  83. package/dist/utils.mjs +15 -0
  84. package/package.json +129 -0
@@ -0,0 +1,82 @@
1
+ type Fetch = typeof fetch;
2
+ type FetchRequestInfo = Parameters<Fetch>[0];
3
+ type FetchRequestInit = Parameters<Fetch>[1];
4
+ type FetchWithAdditionalParams = (input: FetchRequestInfo, init?: FetchRequestInit, additionalParams?: {
5
+ allowPassingTokenToThirdPartyDomains?: boolean;
6
+ }) => Promise<Response>;
7
+ interface TokenCreateVariables {
8
+ email: string;
9
+ password: string;
10
+ }
11
+ interface GraphQLError {
12
+ message: string;
13
+ }
14
+ interface TokenCreateResponse {
15
+ data: {
16
+ tokenCreate: {
17
+ token: string | undefined;
18
+ refreshToken: string | undefined;
19
+ errors: GraphQLError[];
20
+ };
21
+ };
22
+ }
23
+ interface TokenRefreshVariables {
24
+ refreshToken: string;
25
+ }
26
+ interface TokenRefreshResponse {
27
+ errors?: unknown[];
28
+ data: {
29
+ tokenRefresh: {
30
+ token: string | undefined;
31
+ errors?: GraphQLError[];
32
+ };
33
+ };
34
+ }
35
+ interface PasswordResetVariables {
36
+ email: string;
37
+ password: string;
38
+ token: string;
39
+ }
40
+ interface PasswordResetResponse {
41
+ data: {
42
+ setPassword: {
43
+ token: string | undefined;
44
+ refreshToken: string | undefined;
45
+ errors: GraphQLError[];
46
+ };
47
+ };
48
+ }
49
+ interface ExternalAuthenticationURLResponse {
50
+ externalAuthenticationUrl: {
51
+ authenticationData: string;
52
+ errors: GraphQLError[];
53
+ };
54
+ }
55
+ interface ExternalAuthenticationURLVariables {
56
+ pluginId: string;
57
+ input: string;
58
+ }
59
+ interface ExternalObtainAccessToken {
60
+ token: string;
61
+ refreshToken: string;
62
+ csrfToken: string;
63
+ user: unknown;
64
+ }
65
+ interface ExternalObtainAccessTokenResponse {
66
+ externalObtainAccessTokens: ExternalObtainAccessToken;
67
+ }
68
+ interface ExternalObtainAccessTokenVariables {
69
+ pluginId: string;
70
+ input: string;
71
+ }
72
+ declare enum ExternalProvider {
73
+ OpenIDConnect = "mirumee.authentication.openidconnect",
74
+ SaleorCloud = "cloud_auth.CloudAuthorizationPlugin"
75
+ }
76
+ interface StorageRepository {
77
+ getItem(key: string): string | null;
78
+ removeItem(key: string): void;
79
+ setItem(key: string, value: string): void;
80
+ }
81
+
82
+ export { type ExternalAuthenticationURLResponse, type ExternalAuthenticationURLVariables, type ExternalObtainAccessToken, type ExternalObtainAccessTokenResponse, type ExternalObtainAccessTokenVariables, ExternalProvider, type Fetch, type FetchRequestInfo, type FetchRequestInit, type FetchWithAdditionalParams, type PasswordResetResponse, type PasswordResetVariables, type StorageRepository, type TokenCreateResponse, type TokenCreateVariables, type TokenRefreshResponse, type TokenRefreshVariables };
@@ -0,0 +1,82 @@
1
+ type Fetch = typeof fetch;
2
+ type FetchRequestInfo = Parameters<Fetch>[0];
3
+ type FetchRequestInit = Parameters<Fetch>[1];
4
+ type FetchWithAdditionalParams = (input: FetchRequestInfo, init?: FetchRequestInit, additionalParams?: {
5
+ allowPassingTokenToThirdPartyDomains?: boolean;
6
+ }) => Promise<Response>;
7
+ interface TokenCreateVariables {
8
+ email: string;
9
+ password: string;
10
+ }
11
+ interface GraphQLError {
12
+ message: string;
13
+ }
14
+ interface TokenCreateResponse {
15
+ data: {
16
+ tokenCreate: {
17
+ token: string | undefined;
18
+ refreshToken: string | undefined;
19
+ errors: GraphQLError[];
20
+ };
21
+ };
22
+ }
23
+ interface TokenRefreshVariables {
24
+ refreshToken: string;
25
+ }
26
+ interface TokenRefreshResponse {
27
+ errors?: unknown[];
28
+ data: {
29
+ tokenRefresh: {
30
+ token: string | undefined;
31
+ errors?: GraphQLError[];
32
+ };
33
+ };
34
+ }
35
+ interface PasswordResetVariables {
36
+ email: string;
37
+ password: string;
38
+ token: string;
39
+ }
40
+ interface PasswordResetResponse {
41
+ data: {
42
+ setPassword: {
43
+ token: string | undefined;
44
+ refreshToken: string | undefined;
45
+ errors: GraphQLError[];
46
+ };
47
+ };
48
+ }
49
+ interface ExternalAuthenticationURLResponse {
50
+ externalAuthenticationUrl: {
51
+ authenticationData: string;
52
+ errors: GraphQLError[];
53
+ };
54
+ }
55
+ interface ExternalAuthenticationURLVariables {
56
+ pluginId: string;
57
+ input: string;
58
+ }
59
+ interface ExternalObtainAccessToken {
60
+ token: string;
61
+ refreshToken: string;
62
+ csrfToken: string;
63
+ user: unknown;
64
+ }
65
+ interface ExternalObtainAccessTokenResponse {
66
+ externalObtainAccessTokens: ExternalObtainAccessToken;
67
+ }
68
+ interface ExternalObtainAccessTokenVariables {
69
+ pluginId: string;
70
+ input: string;
71
+ }
72
+ declare enum ExternalProvider {
73
+ OpenIDConnect = "mirumee.authentication.openidconnect",
74
+ SaleorCloud = "cloud_auth.CloudAuthorizationPlugin"
75
+ }
76
+ interface StorageRepository {
77
+ getItem(key: string): string | null;
78
+ removeItem(key: string): void;
79
+ setItem(key: string, value: string): void;
80
+ }
81
+
82
+ export { type ExternalAuthenticationURLResponse, type ExternalAuthenticationURLVariables, type ExternalObtainAccessToken, type ExternalObtainAccessTokenResponse, type ExternalObtainAccessTokenVariables, ExternalProvider, type Fetch, type FetchRequestInfo, type FetchRequestInit, type FetchWithAdditionalParams, type PasswordResetResponse, type PasswordResetVariables, type StorageRepository, type TokenCreateResponse, type TokenCreateVariables, type TokenRefreshResponse, type TokenRefreshVariables };
package/dist/types.js ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/types.ts
21
+ var types_exports = {};
22
+ __export(types_exports, {
23
+ ExternalProvider: () => ExternalProvider
24
+ });
25
+ module.exports = __toCommonJS(types_exports);
26
+ var ExternalProvider = /* @__PURE__ */ ((ExternalProvider2) => {
27
+ ExternalProvider2["OpenIDConnect"] = "mirumee.authentication.openidconnect";
28
+ ExternalProvider2["SaleorCloud"] = "cloud_auth.CloudAuthorizationPlugin";
29
+ return ExternalProvider2;
30
+ })(ExternalProvider || {});
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ ExternalProvider
34
+ });
package/dist/types.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import {
2
+ ExternalProvider
3
+ } from "./chunk-KLIEZ4V4.mjs";
4
+ export {
5
+ ExternalProvider
6
+ };
@@ -0,0 +1,28 @@
1
+ import { TypedDocumentString } from './graphql.mjs';
2
+ import '@graphql-typed-document-node/core';
3
+
4
+ declare const getTokenIss: (token: string) => string;
5
+ declare const isExpiredToken: (token: string, tokenGracePeriod: number) => boolean;
6
+ declare const getRequestData: <TResult, TVariables>(query: TypedDocumentString<TResult, TVariables>, variables: TVariables, requestInit?: Partial<RequestInit>) => {
7
+ method: string;
8
+ headers: {
9
+ "Content-Type": string;
10
+ };
11
+ body: string;
12
+ cache?: RequestCache | undefined;
13
+ credentials?: RequestCredentials | undefined;
14
+ integrity?: string | undefined;
15
+ keepalive?: boolean | undefined;
16
+ mode?: RequestMode | undefined;
17
+ redirect?: RequestRedirect | undefined;
18
+ referrer?: string | undefined;
19
+ referrerPolicy?: ReferrerPolicy | undefined;
20
+ signal?: AbortSignal | null | undefined;
21
+ window?: null | undefined;
22
+ };
23
+ declare class InvariantError extends Error {
24
+ constructor(message: string);
25
+ }
26
+ declare function invariant(condition: unknown, message?: string): asserts condition;
27
+
28
+ export { InvariantError, getRequestData, getTokenIss, invariant, isExpiredToken };
@@ -0,0 +1,28 @@
1
+ import { TypedDocumentString } from './graphql.js';
2
+ import '@graphql-typed-document-node/core';
3
+
4
+ declare const getTokenIss: (token: string) => string;
5
+ declare const isExpiredToken: (token: string, tokenGracePeriod: number) => boolean;
6
+ declare const getRequestData: <TResult, TVariables>(query: TypedDocumentString<TResult, TVariables>, variables: TVariables, requestInit?: Partial<RequestInit>) => {
7
+ method: string;
8
+ headers: {
9
+ "Content-Type": string;
10
+ };
11
+ body: string;
12
+ cache?: RequestCache | undefined;
13
+ credentials?: RequestCredentials | undefined;
14
+ integrity?: string | undefined;
15
+ keepalive?: boolean | undefined;
16
+ mode?: RequestMode | undefined;
17
+ redirect?: RequestRedirect | undefined;
18
+ referrer?: string | undefined;
19
+ referrerPolicy?: ReferrerPolicy | undefined;
20
+ signal?: AbortSignal | null | undefined;
21
+ window?: null | undefined;
22
+ };
23
+ declare class InvariantError extends Error {
24
+ constructor(message: string);
25
+ }
26
+ declare function invariant(condition: unknown, message?: string): asserts condition;
27
+
28
+ export { InvariantError, getRequestData, getTokenIss, invariant, isExpiredToken };
package/dist/utils.js ADDED
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utils.ts
21
+ var utils_exports = {};
22
+ __export(utils_exports, {
23
+ InvariantError: () => InvariantError,
24
+ getRequestData: () => getRequestData,
25
+ getTokenIss: () => getTokenIss,
26
+ invariant: () => invariant,
27
+ isExpiredToken: () => isExpiredToken
28
+ });
29
+ module.exports = __toCommonJS(utils_exports);
30
+ var MILLI_MULTIPLYER = 1e3;
31
+ var decodeToken = (token) => {
32
+ const tokenParts = token.split(".");
33
+ const decodedTokenData = Buffer.from(tokenParts[1] || "", "base64").toString();
34
+ const parsedTokenData = JSON.parse(decodedTokenData);
35
+ return parsedTokenData;
36
+ };
37
+ var getTokenExpiry = (token) => {
38
+ const parsedTokenData = decodeToken(token);
39
+ return parsedTokenData.exp * MILLI_MULTIPLYER || 0;
40
+ };
41
+ var getTokenIss = (token) => {
42
+ const parsedTokenData = decodeToken(token);
43
+ return parsedTokenData.iss;
44
+ };
45
+ var isExpiredToken = (token, tokenGracePeriod) => {
46
+ return getTokenExpiry(token) - tokenGracePeriod <= Date.now();
47
+ };
48
+ var getRequestData = (query, variables, requestInit) => ({
49
+ ...requestInit,
50
+ method: "POST",
51
+ headers: {
52
+ ...Object.fromEntries(new Headers(requestInit?.headers).entries()),
53
+ "Content-Type": "application/json"
54
+ },
55
+ body: JSON.stringify({
56
+ query,
57
+ variables
58
+ })
59
+ });
60
+ var InvariantError = class extends Error {
61
+ constructor(message) {
62
+ super(message);
63
+ }
64
+ };
65
+ function invariant(condition, message) {
66
+ if (!condition) {
67
+ throw new InvariantError(`Invariant Violation: ${message || ""}`);
68
+ }
69
+ }
70
+ // Annotate the CommonJS export names for ESM import in node:
71
+ 0 && (module.exports = {
72
+ InvariantError,
73
+ getRequestData,
74
+ getTokenIss,
75
+ invariant,
76
+ isExpiredToken
77
+ });
package/dist/utils.mjs ADDED
@@ -0,0 +1,15 @@
1
+ import {
2
+ InvariantError,
3
+ getRequestData,
4
+ getTokenIss,
5
+ invariant,
6
+ isExpiredToken
7
+ } from "./chunk-UDLCOX6B.mjs";
8
+ import "./chunk-K5MTKW5C.mjs";
9
+ export {
10
+ InvariantError,
11
+ getRequestData,
12
+ getTokenIss,
13
+ invariant,
14
+ isExpiredToken
15
+ };
package/package.json ADDED
@@ -0,0 +1,129 @@
1
+ {
2
+ "name": "@shopsbuilder/auth-sdk",
3
+ "version": "1.1.0",
4
+ "description": "Auth SDK for Saleor",
5
+ "sideEffects": false,
6
+ "files": ["dist/", "README.md"],
7
+ "types": "dist/index.d.ts",
8
+ "typesVersions": {
9
+ "*": {
10
+ "react": ["dist/react/index.d.ts"],
11
+ "next": ["dist/next/index.d.ts"],
12
+ "next/server": ["dist/next/server.d.ts"]
13
+ }
14
+ },
15
+ "main": "dist/index.js",
16
+ "module": "dist/index.mjs",
17
+ "scripts": {
18
+ "prepublishOnly": "pnpm build",
19
+ "prebuild": "pnpm clean",
20
+ "watch": "tsup-node src/* --format esm,cjs --dts --watch",
21
+ "build": "tsup-node src/* --format esm,cjs --dts && pnpm copy-files",
22
+ "clean": "rm -rf ./dist/*",
23
+ "test": "vitest",
24
+ "lint": "prettier --write . && eslint --fix src ",
25
+ "lint:ci": "prettier --check . && eslint src",
26
+ "copy-files": "cp README.md dist/README.md"
27
+ },
28
+ "keywords": [],
29
+ "author": "Saleor Team",
30
+ "license": "BSD-3-Clause",
31
+ "dependencies": {
32
+ "@graphql-typed-document-node/core": "^3.2.0",
33
+ "cookie": "^1.0.2",
34
+ "graphql": "^16.8.1"
35
+ },
36
+ "peerDependencies": {
37
+ "next": "^13.4.4 || ^14.0.0 || ^15.0.0",
38
+ "react": "^18.2.0 || ^19.0.0",
39
+ "react-dom": "^18.2.0 || ^19.0.0 ",
40
+ "urql": "^4.0.3 || ^5.0.0"
41
+ },
42
+ "peerDependenciesMeta": {
43
+ "react": {
44
+ "optional": true
45
+ },
46
+ "react-dom": {
47
+ "optional": true
48
+ },
49
+ "urql": {
50
+ "optional": true
51
+ },
52
+ "next": {
53
+ "optional": true
54
+ }
55
+ },
56
+ "devDependencies": {
57
+ "@graphql-typed-document-node/core": "^3.2.0",
58
+ "@types/debug": "^4.1.12",
59
+ "@types/node": "^22.15.34",
60
+ "@types/node-fetch": "^2.6.9",
61
+ "@types/react": "^18.2.37 || ^19.0.0",
62
+ "@types/react-dom": "^18.2.15 || ^19.0.0",
63
+ "@types/uuid": "^9.0.7",
64
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
65
+ "@typescript-eslint/parser": "^6.11.0",
66
+ "@vitejs/plugin-react": "^4.2.0",
67
+ "clean-publish": "^4.2.0",
68
+ "eslint": "^8.53.0",
69
+ "eslint-config-prettier": "^9.0.0",
70
+ "eslint-import-resolver-typescript": "^3.6.1",
71
+ "eslint-plugin-import": "^2.29.0",
72
+ "eslint-plugin-jsx-a11y": "^6.8.0",
73
+ "eslint-plugin-react": "^7.33.2",
74
+ "eslint-plugin-react-hooks": "^4.6.0",
75
+ "eslint-plugin-simple-import-sort": "^10.0.0",
76
+ "jsdom": "^22.1.0",
77
+ "prettier": "^3.1.0",
78
+ "react": "^18.2.0 || ^19.0.0",
79
+ "react-dom": "^18.2.0 || ^19.0.0",
80
+ "tsup": "^7.3.0",
81
+ "typescript": "^5.2.2",
82
+ "urql": "^5.0.1",
83
+ "vite": "^5.0.0",
84
+ "vitest": "^0.34.6",
85
+ "vitest-fetch-mock": "^0.2.2"
86
+ },
87
+ "lint-staged": {
88
+ "*.{js,ts,tsx}": "eslint --cache --fix",
89
+ "*.{js,ts,tsx,css,md,json}": "prettier --write"
90
+ },
91
+ "exports": {
92
+ "./package.json": "./package.json",
93
+ "./react": {
94
+ "types": "./dist/react/index.d.ts",
95
+ "import": "./dist/react/index.mjs",
96
+ "require": "./dist/react/index.js"
97
+ },
98
+ "./next": {
99
+ "types": "./dist/next/index.d.ts",
100
+ "import": "./dist/next/index.mjs",
101
+ "require": "./dist/next/index.js"
102
+ },
103
+ "./next/server": {
104
+ "types": "./dist/next/server.d.ts",
105
+ "import": "./dist/next/server.mjs",
106
+ "require": "./dist/next/server.js"
107
+ },
108
+ ".": {
109
+ "types": "./dist/index.d.ts",
110
+ "import": "./dist/index.mjs",
111
+ "require": "./dist/index.js"
112
+ }
113
+ },
114
+ "publishConfig": {
115
+ "access": "public"
116
+ },
117
+ "repository": {
118
+ "type": "git",
119
+ "url": "git+https://github.com/ShopsBuilder/s-auth-sdk.git"
120
+ },
121
+ "bugs": {
122
+ "url": "https://github.com/ShopsBuilder/s-auth-sdk/issues"
123
+ },
124
+ "homepage": "https://github.com/ShopsBuilder/s-auth-sdk#readme",
125
+ "engines": {
126
+ "node": ">=22.14.0"
127
+ },
128
+ "packageManager": "pnpm@10.6.3"
129
+ }