@fnd-platform/cognito-auth 1.0.0-alpha.1 → 1.0.0-alpha.10
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/client/auth-client.d.ts +151 -94
- package/lib/client/auth-client.d.ts.map +1 -1
- package/lib/client/auth-client.js +330 -209
- package/lib/client/auth-client.js.map +1 -1
- package/lib/client/errors.d.ts +45 -23
- package/lib/client/errors.d.ts.map +1 -1
- package/lib/client/errors.js +80 -38
- package/lib/client/errors.js.map +1 -1
- package/lib/client/index.js +8 -23
- package/lib/index.d.ts +4 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/jwt.js +27 -27
- package/lib/remix/admin.server.js +44 -45
- package/lib/remix/index.d.ts +3 -11
- package/lib/remix/index.d.ts.map +1 -1
- package/lib/remix/index.js +19 -90
- package/lib/remix/index.js.map +1 -1
- package/lib/remix/session.server.d.ts +44 -33
- package/lib/remix/session.server.d.ts.map +1 -1
- package/lib/remix/session.server.js +157 -95
- package/lib/remix/session.server.js.map +1 -1
- package/lib/types.d.ts +140 -106
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +3 -3
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -7,155 +7,189 @@
|
|
|
7
7
|
* Cognito JWT payload structure from access token.
|
|
8
8
|
*/
|
|
9
9
|
export interface CognitoAccessTokenPayload {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
/** User's unique identifier */
|
|
11
|
+
sub: string;
|
|
12
|
+
/** Cognito groups the user belongs to */
|
|
13
|
+
'cognito:groups'?: string[];
|
|
14
|
+
/** Token use type */
|
|
15
|
+
token_use: 'access';
|
|
16
|
+
/** Token scopes */
|
|
17
|
+
scope?: string;
|
|
18
|
+
/** Issuer URL */
|
|
19
|
+
iss: string;
|
|
20
|
+
/** Expiration timestamp */
|
|
21
|
+
exp: number;
|
|
22
|
+
/** Issued at timestamp */
|
|
23
|
+
iat: number;
|
|
24
|
+
/** Client ID */
|
|
25
|
+
client_id: string;
|
|
26
|
+
/** Username */
|
|
27
|
+
username: string;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Cognito JWT payload structure from ID token.
|
|
31
31
|
*/
|
|
32
32
|
export interface CognitoIdTokenPayload {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
33
|
+
/** User's unique identifier */
|
|
34
|
+
sub: string;
|
|
35
|
+
/** User's email address */
|
|
36
|
+
email?: string;
|
|
37
|
+
/** Whether email is verified */
|
|
38
|
+
email_verified?: boolean;
|
|
39
|
+
/** Cognito groups the user belongs to */
|
|
40
|
+
'cognito:groups'?: string[];
|
|
41
|
+
/** Cognito username */
|
|
42
|
+
'cognito:username'?: string;
|
|
43
|
+
/** Token use type */
|
|
44
|
+
token_use: 'id';
|
|
45
|
+
/** Issuer URL */
|
|
46
|
+
iss: string;
|
|
47
|
+
/** Expiration timestamp */
|
|
48
|
+
exp: number;
|
|
49
|
+
/** Issued at timestamp */
|
|
50
|
+
iat: number;
|
|
51
|
+
/** Audience (client ID) */
|
|
52
|
+
aud: string;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Configuration for JWT verification.
|
|
56
56
|
*/
|
|
57
57
|
export interface JwtVerifierConfig {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
/** Cognito User Pool ID */
|
|
59
|
+
userPoolId: string;
|
|
60
|
+
/** Cognito Client ID */
|
|
61
|
+
clientId: string;
|
|
62
|
+
/** Token type to verify */
|
|
63
|
+
tokenUse?: 'access' | 'id';
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Configuration options for the auth middleware.
|
|
67
67
|
*/
|
|
68
68
|
export interface CognitoAuthOptions {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
/** Cognito User Pool ID (defaults to COGNITO_USER_POOL_ID env var) */
|
|
70
|
+
userPoolId?: string;
|
|
71
|
+
/** Cognito Client ID (defaults to COGNITO_CLIENT_ID env var) */
|
|
72
|
+
clientId?: string;
|
|
73
|
+
/** Required roles (Cognito groups). User must have at least one. */
|
|
74
|
+
roles?: string[];
|
|
75
|
+
/** Paths to skip authentication for */
|
|
76
|
+
skipPaths?: string[];
|
|
77
|
+
/** Token type to verify */
|
|
78
|
+
tokenUse?: 'access' | 'id';
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Result of successful token verification.
|
|
82
82
|
*/
|
|
83
83
|
export interface TokenVerificationResult {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
/** User ID (sub claim) */
|
|
85
|
+
userId: string;
|
|
86
|
+
/** User email (from ID token or access token if present) */
|
|
87
|
+
email?: string;
|
|
88
|
+
/** User's Cognito groups */
|
|
89
|
+
groups: string[];
|
|
90
|
+
/** Raw token payload */
|
|
91
|
+
payload: CognitoAccessTokenPayload | CognitoIdTokenPayload;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Configuration for FndAuthClient.
|
|
95
95
|
*/
|
|
96
96
|
export interface AuthClientConfig {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
/** Cognito User Pool ID */
|
|
98
|
+
userPoolId: string;
|
|
99
|
+
/** Cognito Client ID */
|
|
100
|
+
clientId: string;
|
|
101
|
+
/** AWS region (defaults to AWS_REGION env var) */
|
|
102
|
+
region?: string;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Authentication tokens returned from Cognito.
|
|
106
106
|
*/
|
|
107
107
|
export interface AuthTokens {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
/** JWT access token */
|
|
109
|
+
accessToken: string;
|
|
110
|
+
/** JWT ID token */
|
|
111
|
+
idToken: string;
|
|
112
|
+
/** Refresh token for obtaining new tokens */
|
|
113
|
+
refreshToken: string;
|
|
114
|
+
/** Token expiration in seconds */
|
|
115
|
+
expiresIn: number;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* Result of sign-up operation.
|
|
119
119
|
*/
|
|
120
120
|
export interface SignUpResult {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
/** Whether user confirmation is required */
|
|
122
|
+
userConfirmed: boolean;
|
|
123
|
+
/** Delivery details for confirmation code (if applicable) */
|
|
124
|
+
codeDeliveryDetails?: {
|
|
125
|
+
/** Destination (masked email/phone) */
|
|
126
|
+
destination?: string;
|
|
127
|
+
/** Delivery medium */
|
|
128
|
+
deliveryMedium?: 'EMAIL' | 'SMS';
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Challenge types that may be returned during sign-in.
|
|
133
|
+
*/
|
|
134
|
+
export type AuthChallenge = 'NEW_PASSWORD_REQUIRED' | 'SMS_MFA' | 'SOFTWARE_TOKEN_MFA';
|
|
135
|
+
/**
|
|
136
|
+
* Result of sign-in operation.
|
|
137
|
+
*
|
|
138
|
+
* May return either tokens (successful auth) or a challenge (requires additional action).
|
|
139
|
+
*/
|
|
140
|
+
export type SignInResult = {
|
|
141
|
+
success: true;
|
|
142
|
+
tokens: AuthTokens;
|
|
143
|
+
} | {
|
|
144
|
+
success: false;
|
|
145
|
+
challenge: AuthChallenge;
|
|
146
|
+
session: string;
|
|
147
|
+
email: string;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Result of forgot password initiation.
|
|
151
|
+
*/
|
|
152
|
+
export interface ForgotPasswordResult {
|
|
153
|
+
/** Delivery details for reset code */
|
|
154
|
+
codeDeliveryDetails?: {
|
|
155
|
+
/** Destination (masked email/phone) */
|
|
156
|
+
destination?: string;
|
|
157
|
+
/** Delivery medium */
|
|
158
|
+
deliveryMedium?: 'EMAIL' | 'SMS';
|
|
159
|
+
};
|
|
130
160
|
}
|
|
131
161
|
/**
|
|
132
162
|
* Session data stored in cookies.
|
|
163
|
+
*
|
|
164
|
+
* Note: accessToken and idToken are optional because they are not stored
|
|
165
|
+
* in the cookie session to stay under browser cookie size limits (~4KB).
|
|
166
|
+
* Use the refreshToken to obtain fresh tokens when needed for API calls.
|
|
133
167
|
*/
|
|
134
168
|
export interface SessionData {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
169
|
+
/** JWT access token (not stored in session, use refreshToken to obtain) */
|
|
170
|
+
accessToken?: string;
|
|
171
|
+
/** JWT ID token (not stored in session, use refreshToken to obtain) */
|
|
172
|
+
idToken?: string;
|
|
173
|
+
/** Refresh token */
|
|
174
|
+
refreshToken: string;
|
|
175
|
+
/** Expiration timestamp (ms since epoch) */
|
|
176
|
+
expiresAt: number;
|
|
177
|
+
/** User ID (sub claim) */
|
|
178
|
+
userId: string;
|
|
179
|
+
/** User email */
|
|
180
|
+
email: string;
|
|
181
|
+
/** User's Cognito groups */
|
|
182
|
+
groups: string[];
|
|
149
183
|
}
|
|
150
184
|
/**
|
|
151
185
|
* User information extracted from session.
|
|
152
186
|
*/
|
|
153
187
|
export interface SessionUser {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
188
|
+
/** User ID */
|
|
189
|
+
userId: string;
|
|
190
|
+
/** User email */
|
|
191
|
+
email: string;
|
|
192
|
+
/** User's groups/roles */
|
|
193
|
+
groups: string[];
|
|
160
194
|
}
|
|
161
|
-
//# sourceMappingURL=types.d.ts.map
|
|
195
|
+
//# sourceMappingURL=types.d.ts.map
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,qBAAqB;IACrB,SAAS,EAAE,QAAQ,CAAC;IACpB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,+BAA+B;IAC/B,GAA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AC,EAAE,OAAO,GAAG,KAAK,CAAC;KAClC,CAAC;CACH;AAID;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,cAAc;IACd,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
package/lib/types.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Type definitions for cognito-auth middleware and utilities.
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
Object.defineProperty(exports,
|
|
8
|
-
//# sourceMappingURL=types.js.map
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED