@logto/js 1.1.0 → 2.0.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/package.json +32 -37
- package/lib/index.d.ts +0 -224
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -407
- package/lib/index.js.map +0 -1
- package/lib/module.d.mts +0 -224
- package/lib/module.mjs +0 -401
- package/lib/module.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/js",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"main": "./lib/index.
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./lib/index.cjs",
|
|
6
|
+
"module": "./lib/index.js",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
6
8
|
"exports": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
+
"types": "./lib/index.d.ts",
|
|
10
|
+
"require": "./lib/index.cjs",
|
|
11
|
+
"import": "./lib/index.js"
|
|
9
12
|
},
|
|
10
|
-
"module": "./lib/module.mjs",
|
|
11
|
-
"types": "./lib/index.d.ts",
|
|
12
13
|
"files": [
|
|
13
14
|
"lib"
|
|
14
15
|
],
|
|
@@ -18,43 +19,29 @@
|
|
|
18
19
|
"url": "https://github.com/logto-io/js.git",
|
|
19
20
|
"directory": "packages/js"
|
|
20
21
|
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
|
|
23
|
-
"precommit": "lint-staged",
|
|
24
|
-
"check": "tsc --noEmit",
|
|
25
|
-
"build": "rm -rf lib/ && pnpm check && parcel build && cp lib/index.d.ts lib/module.d.mts",
|
|
26
|
-
"lint": "eslint --ext .ts src",
|
|
27
|
-
"test": "jest",
|
|
28
|
-
"test:coverage": "jest --silent --env=jsdom && jest --silent --coverage",
|
|
29
|
-
"prepack": "pnpm test"
|
|
30
|
-
},
|
|
31
22
|
"dependencies": {
|
|
32
|
-
"@silverhand/essentials": "^
|
|
23
|
+
"@silverhand/essentials": "^2.6.2",
|
|
33
24
|
"camelcase-keys": "^7.0.1",
|
|
34
|
-
"jose": "^4.
|
|
35
|
-
"lodash.get": "^4.4.2"
|
|
25
|
+
"jose": "^4.13.2"
|
|
36
26
|
},
|
|
37
27
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@silverhand/ts-config": "^1.0.0",
|
|
44
|
-
"@types/jest": "^27.4.1",
|
|
45
|
-
"@types/lodash.get": "^4.4.6",
|
|
28
|
+
"@silverhand/eslint-config": "^3.0.1",
|
|
29
|
+
"@silverhand/ts-config": "^3.0.0",
|
|
30
|
+
"@swc/core": "^1.3.50",
|
|
31
|
+
"@swc/jest": "^0.2.24",
|
|
32
|
+
"@types/jest": "^29.5.1",
|
|
46
33
|
"@types/node": "^18.0.0",
|
|
47
|
-
"eslint": "^8.
|
|
48
|
-
"jest": "^
|
|
34
|
+
"eslint": "^8.38.0",
|
|
35
|
+
"jest": "^29.5.0",
|
|
36
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
49
37
|
"jest-matcher-specific-error": "^1.0.0",
|
|
50
38
|
"lint-staged": "^13.0.0",
|
|
51
|
-
"nock": "^13.
|
|
52
|
-
"
|
|
53
|
-
"
|
|
39
|
+
"nock": "^13.3.0",
|
|
40
|
+
"prettier": "^2.8.7",
|
|
41
|
+
"rollup": "^3.20.2",
|
|
54
42
|
"text-encoder": "^0.0.4",
|
|
55
|
-
"ts-jest": "^27.0.4",
|
|
56
43
|
"type-fest": "^3.0.0",
|
|
57
|
-
"typescript": "
|
|
44
|
+
"typescript": "^5.0.0"
|
|
58
45
|
},
|
|
59
46
|
"eslintConfig": {
|
|
60
47
|
"extends": "@silverhand"
|
|
@@ -63,5 +50,13 @@
|
|
|
63
50
|
"publishConfig": {
|
|
64
51
|
"access": "public"
|
|
65
52
|
},
|
|
66
|
-
"
|
|
67
|
-
|
|
53
|
+
"scripts": {
|
|
54
|
+
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
|
|
55
|
+
"precommit": "lint-staged",
|
|
56
|
+
"check": "tsc --noEmit",
|
|
57
|
+
"build": "rm -rf lib/ && tsc -p tsconfig.build.json --noEmit && rollup -c",
|
|
58
|
+
"lint": "eslint --ext .ts src",
|
|
59
|
+
"test": "jest",
|
|
60
|
+
"test:coverage": "jest --silent --env=jsdom && jest --silent"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { KeysToCamelCase, NormalizeKeyPaths, Nullable } from "@silverhand/essentials";
|
|
2
|
-
import { JWTVerifyGetKey } from "jose";
|
|
3
|
-
export const ContentType: {
|
|
4
|
-
formUrlEncoded: {
|
|
5
|
-
'Content-Type': string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export enum TokenGrantType {
|
|
9
|
-
AuthorizationCode = "authorization_code",
|
|
10
|
-
RefreshToken = "refresh_token"
|
|
11
|
-
}
|
|
12
|
-
export enum QueryKey {
|
|
13
|
-
ClientId = "client_id",
|
|
14
|
-
Code = "code",
|
|
15
|
-
CodeChallenge = "code_challenge",
|
|
16
|
-
CodeChallengeMethod = "code_challenge_method",
|
|
17
|
-
CodeVerifier = "code_verifier",
|
|
18
|
-
Error = "error",
|
|
19
|
-
ErrorDescription = "error_description",
|
|
20
|
-
GrantType = "grant_type",
|
|
21
|
-
IdToken = "id_token",
|
|
22
|
-
IdTokenHint = "id_token_hint",
|
|
23
|
-
PostLogoutRedirectUri = "post_logout_redirect_uri",
|
|
24
|
-
Prompt = "prompt",
|
|
25
|
-
RedirectUri = "redirect_uri",
|
|
26
|
-
RefreshToken = "refresh_token",
|
|
27
|
-
Resource = "resource",
|
|
28
|
-
ResponseType = "response_type",
|
|
29
|
-
Scope = "scope",
|
|
30
|
-
State = "state",
|
|
31
|
-
Token = "token",
|
|
32
|
-
InteractionMode = "interaction_mode"
|
|
33
|
-
}
|
|
34
|
-
export enum Prompt {
|
|
35
|
-
Consent = "consent",
|
|
36
|
-
Login = "login"
|
|
37
|
-
}
|
|
38
|
-
export enum ReservedScope {
|
|
39
|
-
OpenId = "openid",
|
|
40
|
-
OfflineAccess = "offline_access"
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Scopes for ID Token and Userinfo Endpoint.
|
|
44
|
-
*/
|
|
45
|
-
export enum UserScope {
|
|
46
|
-
/**
|
|
47
|
-
* Scope for basic user info.
|
|
48
|
-
*
|
|
49
|
-
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
50
|
-
*/
|
|
51
|
-
Profile = "profile",
|
|
52
|
-
/**
|
|
53
|
-
* Scope for user email address.
|
|
54
|
-
*
|
|
55
|
-
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
56
|
-
*/
|
|
57
|
-
Email = "email",
|
|
58
|
-
/**
|
|
59
|
-
* Scope for user phone number.
|
|
60
|
-
*
|
|
61
|
-
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
62
|
-
*/
|
|
63
|
-
Phone = "phone",
|
|
64
|
-
/**
|
|
65
|
-
* Scope for user's custom data.
|
|
66
|
-
*
|
|
67
|
-
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
68
|
-
*/
|
|
69
|
-
CustomData = "custom_data",
|
|
70
|
-
/**
|
|
71
|
-
* Scope for user's social identity details.
|
|
72
|
-
*
|
|
73
|
-
* See {@link idTokenClaims} for mapped claims in ID Token and {@link userinfoClaims} for additional claims in Userinfo Endpoint.
|
|
74
|
-
*/
|
|
75
|
-
Identities = "identities"
|
|
76
|
-
}
|
|
77
|
-
export type LogtoRequestErrorBody = {
|
|
78
|
-
code: string;
|
|
79
|
-
message: string;
|
|
80
|
-
};
|
|
81
|
-
export type Requester = <T>(...args: Parameters<typeof fetch>) => Promise<T>;
|
|
82
|
-
export type InteractionMode = 'signIn' | 'signUp';
|
|
83
|
-
export type FetchTokenByAuthorizationCodeParameters = {
|
|
84
|
-
clientId: string;
|
|
85
|
-
tokenEndpoint: string;
|
|
86
|
-
redirectUri: string;
|
|
87
|
-
codeVerifier: string;
|
|
88
|
-
code: string;
|
|
89
|
-
resource?: string;
|
|
90
|
-
};
|
|
91
|
-
export type FetchTokenByRefreshTokenParameters = {
|
|
92
|
-
clientId: string;
|
|
93
|
-
tokenEndpoint: string;
|
|
94
|
-
refreshToken: string;
|
|
95
|
-
resource?: string;
|
|
96
|
-
scopes?: string[];
|
|
97
|
-
};
|
|
98
|
-
type SnakeCaseCodeTokenResponse = {
|
|
99
|
-
access_token: string;
|
|
100
|
-
refresh_token?: string;
|
|
101
|
-
id_token: string;
|
|
102
|
-
scope: string;
|
|
103
|
-
expires_in: number;
|
|
104
|
-
};
|
|
105
|
-
export type CodeTokenResponse = KeysToCamelCase<SnakeCaseCodeTokenResponse>;
|
|
106
|
-
type SnakeCaseRefreshTokenTokenResponse = {
|
|
107
|
-
access_token: string;
|
|
108
|
-
refresh_token: string;
|
|
109
|
-
id_token?: string;
|
|
110
|
-
scope: string;
|
|
111
|
-
expires_in: number;
|
|
112
|
-
};
|
|
113
|
-
export type RefreshTokenTokenResponse = KeysToCamelCase<SnakeCaseRefreshTokenTokenResponse>;
|
|
114
|
-
export const fetchTokenByAuthorizationCode: ({ clientId, tokenEndpoint, redirectUri, codeVerifier, code, resource, }: FetchTokenByAuthorizationCodeParameters, requester: Requester) => Promise<CodeTokenResponse>;
|
|
115
|
-
export const fetchTokenByRefreshToken: ({ clientId, tokenEndpoint, refreshToken, resource, scopes }: FetchTokenByRefreshTokenParameters, requester: Requester) => Promise<RefreshTokenTokenResponse>;
|
|
116
|
-
type OidcConfigSnakeCaseResponse = {
|
|
117
|
-
authorization_endpoint: string;
|
|
118
|
-
token_endpoint: string;
|
|
119
|
-
userinfo_endpoint: string;
|
|
120
|
-
end_session_endpoint: string;
|
|
121
|
-
revocation_endpoint: string;
|
|
122
|
-
jwks_uri: string;
|
|
123
|
-
issuer: string;
|
|
124
|
-
};
|
|
125
|
-
export const discoveryPath = "/oidc/.well-known/openid-configuration";
|
|
126
|
-
export type OidcConfigResponse = KeysToCamelCase<OidcConfigSnakeCaseResponse>;
|
|
127
|
-
export const fetchOidcConfig: (endpoint: string, requester: Requester) => Promise<OidcConfigResponse>;
|
|
128
|
-
export const revoke: (revocationEndpoint: string, clientId: string, token: string, requester: Requester) => Promise<void>;
|
|
129
|
-
export const isArbitraryObject: (data: unknown) => data is Record<string, unknown>;
|
|
130
|
-
declare const logtoErrorCodes: Readonly<{
|
|
131
|
-
id_token: {
|
|
132
|
-
invalid_iat: string;
|
|
133
|
-
invalid_token: string;
|
|
134
|
-
};
|
|
135
|
-
callback_uri_verification: {
|
|
136
|
-
redirect_uri_mismatched: string;
|
|
137
|
-
error_found: string;
|
|
138
|
-
missing_state: string;
|
|
139
|
-
state_mismatched: string;
|
|
140
|
-
missing_code: string;
|
|
141
|
-
};
|
|
142
|
-
crypto_subtle_unavailable: "Crypto.subtle is unavailable in insecure contexts (non-HTTPS).";
|
|
143
|
-
unexpected_response_error: "Unexpected response error from the server.";
|
|
144
|
-
}>;
|
|
145
|
-
export type LogtoErrorCode = NormalizeKeyPaths<typeof logtoErrorCodes>;
|
|
146
|
-
export class LogtoError extends Error {
|
|
147
|
-
code: LogtoErrorCode;
|
|
148
|
-
data: unknown;
|
|
149
|
-
constructor(code: LogtoErrorCode, data?: unknown);
|
|
150
|
-
}
|
|
151
|
-
export const isLogtoRequestError: (data: unknown) => data is {
|
|
152
|
-
code: string;
|
|
153
|
-
message: string;
|
|
154
|
-
};
|
|
155
|
-
export class LogtoRequestError extends Error {
|
|
156
|
-
code: string;
|
|
157
|
-
constructor(code: string, message: string);
|
|
158
|
-
}
|
|
159
|
-
export class OidcError {
|
|
160
|
-
error: string;
|
|
161
|
-
errorDescription?: string | undefined;
|
|
162
|
-
constructor(error: string, errorDescription?: string | undefined);
|
|
163
|
-
}
|
|
164
|
-
export const parseUriParameters: (uri: string) => URLSearchParams;
|
|
165
|
-
export const verifyAndParseCodeFromCallbackUri: (callbackUri: string, redirectUri: string, state: string) => string;
|
|
166
|
-
export type IdTokenClaims = {
|
|
167
|
-
iss: string;
|
|
168
|
-
sub: string;
|
|
169
|
-
aud: string;
|
|
170
|
-
exp: number;
|
|
171
|
-
iat: number;
|
|
172
|
-
at_hash?: Nullable<string>;
|
|
173
|
-
name?: Nullable<string>;
|
|
174
|
-
username?: Nullable<string>;
|
|
175
|
-
picture?: Nullable<string>;
|
|
176
|
-
email?: Nullable<string>;
|
|
177
|
-
email_verified?: boolean;
|
|
178
|
-
phone_number?: Nullable<string>;
|
|
179
|
-
phone_number_verified?: boolean;
|
|
180
|
-
};
|
|
181
|
-
export const verifyIdToken: (idToken: string, clientId: string, issuer: string, jwks: JWTVerifyGetKey) => Promise<void>;
|
|
182
|
-
export const decodeIdToken: (token: string) => IdTokenClaims;
|
|
183
|
-
/**
|
|
184
|
-
* @param originalScopes
|
|
185
|
-
* @return scopes should contain all default scopes (`openid`, `offline_access` and `profile`)
|
|
186
|
-
*/
|
|
187
|
-
export const withDefaultScopes: (originalScopes?: string[]) => string;
|
|
188
|
-
export type SignInUriParameters = {
|
|
189
|
-
authorizationEndpoint: string;
|
|
190
|
-
clientId: string;
|
|
191
|
-
redirectUri: string;
|
|
192
|
-
codeChallenge: string;
|
|
193
|
-
state: string;
|
|
194
|
-
scopes?: string[];
|
|
195
|
-
resources?: string[];
|
|
196
|
-
prompt?: Prompt;
|
|
197
|
-
interactionMode?: InteractionMode;
|
|
198
|
-
};
|
|
199
|
-
export const generateSignInUri: ({ authorizationEndpoint, clientId, redirectUri, codeChallenge, state, scopes, resources, prompt, interactionMode, }: SignInUriParameters) => string;
|
|
200
|
-
type SignOutUriParameters = {
|
|
201
|
-
endSessionEndpoint: string;
|
|
202
|
-
clientId: string;
|
|
203
|
-
postLogoutRedirectUri?: string;
|
|
204
|
-
};
|
|
205
|
-
export const generateSignOutUri: ({ endSessionEndpoint, clientId, postLogoutRedirectUri, }: SignOutUriParameters) => string;
|
|
206
|
-
type Identity = {
|
|
207
|
-
userId: string;
|
|
208
|
-
details?: Record<string, unknown>;
|
|
209
|
-
};
|
|
210
|
-
export type UserInfoResponse = {
|
|
211
|
-
sub: string;
|
|
212
|
-
name?: Nullable<string>;
|
|
213
|
-
username?: Nullable<string>;
|
|
214
|
-
picture?: Nullable<string>;
|
|
215
|
-
email?: Nullable<string>;
|
|
216
|
-
email_verified?: boolean;
|
|
217
|
-
phone_number?: Nullable<string>;
|
|
218
|
-
phone_number_verified?: boolean;
|
|
219
|
-
custom_data?: unknown;
|
|
220
|
-
identities?: Record<string, Identity>;
|
|
221
|
-
};
|
|
222
|
-
export const fetchUserInfo: (userInfoEndpoint: string, accessToken: string, requester: Requester) => Promise<UserInfoResponse>;
|
|
223
|
-
|
|
224
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;AAAA,OAAO,MAAM;;;;CAEZ,CAAC;AAEF;IACE,iBAAiB,uBAAuB;IACxC,YAAY,kBAAkB;CAC/B;AAED;IACE,QAAQ,cAAc;IACtB,IAAI,SAAS;IACb,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,YAAY,kBAAkB;IAC9B,KAAK,UAAU;IACf,gBAAgB,sBAAsB;IACtC,SAAS,eAAe;IACxB,OAAO,aAAa;IACpB,WAAW,kBAAkB;IAC7B,qBAAqB,6BAA6B;IAClD,iBAAiB;IACjB,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,QAAQ,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ch-token.ts","packages/js/src/src/core/oidc-config.ts","packages/js/src/src/core/revoke.ts","packages/js/src/src/utils/arbitrary-object.ts","packages/js/src/src/utils/errors.ts","packages/js/src/src/utils/callback-uri.ts","packages/js/src/src/utils/id-token.ts","packages/js/src/src/utils/scopes.ts","packages/js/src/src/utils/index.ts","packages/js/src/src/core/sign-in.ts","packages/js/src/src/core/sign-out.ts","packages/js/src/src/core/user-info.ts","packages/js/src/src/core/index.ts","packages/js/src/src/index.ts","packages/js/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"/* istanbul ignore file */\nexport * from './core';\nexport * from './utils';\nexport * from './consts';\nexport * from './types';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|