@logto/next 2.2.1 → 2.3.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/lib/src/index.cjs +28 -0
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.js +1 -1
- package/package.json +3 -3
package/lib/src/index.cjs
CHANGED
|
@@ -122,6 +122,22 @@ Object.defineProperty(exports, 'LogtoRequestError', {
|
|
|
122
122
|
enumerable: true,
|
|
123
123
|
get: function () { return NodeClient.LogtoRequestError; }
|
|
124
124
|
});
|
|
125
|
+
Object.defineProperty(exports, 'OidcError', {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () { return NodeClient.OidcError; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, 'PersistKey', {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return NodeClient.PersistKey; }
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(exports, 'Prompt', {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () { return NodeClient.Prompt; }
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, 'ReservedResource', {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () { return NodeClient.ReservedResource; }
|
|
140
|
+
});
|
|
125
141
|
Object.defineProperty(exports, 'ReservedScope', {
|
|
126
142
|
enumerable: true,
|
|
127
143
|
get: function () { return NodeClient.ReservedScope; }
|
|
@@ -130,4 +146,16 @@ Object.defineProperty(exports, 'UserScope', {
|
|
|
130
146
|
enumerable: true,
|
|
131
147
|
get: function () { return NodeClient.UserScope; }
|
|
132
148
|
});
|
|
149
|
+
Object.defineProperty(exports, 'buildOrganizationUrn', {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () { return NodeClient.buildOrganizationUrn; }
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, 'getOrganizationIdFromUrn', {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () { return NodeClient.getOrganizationIdFromUrn; }
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, 'organizationUrnPrefix', {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () { return NodeClient.organizationUrnPrefix; }
|
|
160
|
+
});
|
|
133
161
|
exports.default = LogtoClient;
|
package/lib/src/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { type GetContextParameters, type InteractionMode } from '@logto/node';
|
|
|
2
2
|
import { type GetServerSidePropsResult, type GetServerSidePropsContext, type NextApiHandler } from 'next';
|
|
3
3
|
import LogtoNextBaseClient from './client.js';
|
|
4
4
|
import type { LogtoNextConfig } from './types.js';
|
|
5
|
-
export { ReservedScope, UserScope,
|
|
6
|
-
export type { LogtoContext, InteractionMode, LogtoErrorCode } from '@logto/node';
|
|
5
|
+
export { LogtoError, LogtoRequestError, LogtoClientError, OidcError, Prompt, ReservedScope, ReservedResource, UserScope, organizationUrnPrefix, buildOrganizationUrn, getOrganizationIdFromUrn, PersistKey, } from '@logto/node';
|
|
6
|
+
export type { IdTokenClaims, LogtoContext, InteractionMode, LogtoErrorCode } from '@logto/node';
|
|
7
7
|
export default class LogtoClient extends LogtoNextBaseClient {
|
|
8
8
|
constructor(config: LogtoNextConfig);
|
|
9
9
|
handleSignIn: (redirectUri?: string, interactionMode?: InteractionMode) => NextApiHandler;
|
package/lib/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as crypto from 'crypto';
|
|
2
2
|
import NodeClient from '@logto/node';
|
|
3
|
-
export { LogtoClientError, LogtoError, LogtoRequestError, ReservedScope, UserScope } from '@logto/node';
|
|
3
|
+
export { LogtoClientError, LogtoError, LogtoRequestError, OidcError, PersistKey, Prompt, ReservedResource, ReservedScope, UserScope, buildOrganizationUrn, getOrganizationIdFromUrn, organizationUrnPrefix } from '@logto/node';
|
|
4
4
|
import LogtoNextBaseClient from './client.js';
|
|
5
5
|
import { createSession } from './session.js';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/next",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/src/index.cjs",
|
|
6
6
|
"module": "./lib/src/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@edge-runtime/cookies": "^4.0.0",
|
|
49
|
-
"@logto/node": "^2.
|
|
49
|
+
"@logto/node": "^2.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@silverhand/eslint-config": "^4.0.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"jest": "^29.5.0",
|
|
60
60
|
"jest-location-mock": "^2.0.0",
|
|
61
61
|
"jest-matcher-specific-error": "^1.0.0",
|
|
62
|
-
"lint-staged": "^
|
|
62
|
+
"lint-staged": "^15.0.0",
|
|
63
63
|
"next": "^13.5.3",
|
|
64
64
|
"next-test-api-route-handler": "^3.1.6",
|
|
65
65
|
"prettier": "^3.0.0",
|