@hatkom/aws-auth 1.4.2 → 1.4.4
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/.releaserc.json +17 -0
- package/CHANGELOG.md +7 -0
- package/README.md +37 -1
- package/bun.lock +1135 -0
- package/package.json +8 -5
- package/dist/auth.d.ts +0 -34
- package/dist/auth.js +0 -158
- package/dist/auth.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hatkom/aws-auth",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rm -rf ./dist && tsc",
|
|
@@ -24,11 +24,14 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/Hatkom-io/aws-auth#readme",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@biomejs/biome": "^
|
|
28
|
-
"@
|
|
29
|
-
"
|
|
27
|
+
"@biomejs/biome": "^2.4.8",
|
|
28
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
29
|
+
"@semantic-release/git": "^10.0.1",
|
|
30
|
+
"@semantic-release/github": "^10.3.5",
|
|
31
|
+
"@types/node": "^25.5.0",
|
|
32
|
+
"typescript": "^6.0.2"
|
|
30
33
|
},
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"amazon-cognito-identity-js": "^6.3.
|
|
35
|
+
"amazon-cognito-identity-js": "^6.3.16"
|
|
33
36
|
}
|
|
34
37
|
}
|
package/dist/auth.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { CognitoUserSession } from 'amazon-cognito-identity-js';
|
|
2
|
-
type AuthenticateUserArgs = {
|
|
3
|
-
email: string;
|
|
4
|
-
password: string;
|
|
5
|
-
};
|
|
6
|
-
type ForgotPasswordSubmitArgs = {
|
|
7
|
-
username: string;
|
|
8
|
-
verificationCode: string;
|
|
9
|
-
password: string;
|
|
10
|
-
};
|
|
11
|
-
type VerifyUserEmailArgs = {
|
|
12
|
-
username: string;
|
|
13
|
-
code: string;
|
|
14
|
-
};
|
|
15
|
-
type CompleteNewPasswordChallengeArgs = {
|
|
16
|
-
username: string;
|
|
17
|
-
newPassword: string;
|
|
18
|
-
};
|
|
19
|
-
declare class AWSAuthClient {
|
|
20
|
-
private userPool;
|
|
21
|
-
private syncStoragePromise;
|
|
22
|
-
constructor(UserPoolId: string, ClientId: string);
|
|
23
|
-
signOut: () => Promise<void>;
|
|
24
|
-
completeNewPasswordChallenge: ({ username, newPassword, }: CompleteNewPasswordChallengeArgs) => Promise<unknown>;
|
|
25
|
-
resendVerificationCode: (username: string) => Promise<unknown>;
|
|
26
|
-
verifyUserEmail: ({ username, code }: VerifyUserEmailArgs) => Promise<unknown>;
|
|
27
|
-
forgotPassword: (username: string) => Promise<unknown>;
|
|
28
|
-
forgotPasswordSubmit: ({ username, verificationCode, password, }: ForgotPasswordSubmitArgs) => Promise<unknown>;
|
|
29
|
-
authenticateUser: ({ email, password }: AuthenticateUserArgs) => Promise<CognitoUserSession | "new-password-required">;
|
|
30
|
-
getCurrentSessionToken: () => Promise<string | null>;
|
|
31
|
-
private isValid;
|
|
32
|
-
private cognitoUser;
|
|
33
|
-
}
|
|
34
|
-
export { AWSAuthClient, CognitoUserSession };
|
package/dist/auth.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CognitoUserSession = exports.AWSAuthClient = void 0;
|
|
4
|
-
const amazon_cognito_identity_js_1 = require("amazon-cognito-identity-js");
|
|
5
|
-
Object.defineProperty(exports, "CognitoUserSession", { enumerable: true, get: function () { return amazon_cognito_identity_js_1.CognitoUserSession; } });
|
|
6
|
-
const needsToSyncStorage = (userPool) => !!('storage' in userPool &&
|
|
7
|
-
typeof userPool.storage === 'function' &&
|
|
8
|
-
'sync' in userPool.storage &&
|
|
9
|
-
typeof userPool.storage.sync === 'function');
|
|
10
|
-
class AWSAuthClient {
|
|
11
|
-
userPool;
|
|
12
|
-
syncStoragePromise;
|
|
13
|
-
constructor(UserPoolId, ClientId) {
|
|
14
|
-
this.userPool = new amazon_cognito_identity_js_1.CognitoUserPool({
|
|
15
|
-
UserPoolId,
|
|
16
|
-
ClientId,
|
|
17
|
-
});
|
|
18
|
-
this.syncStoragePromise = new Promise((resolve) => {
|
|
19
|
-
if (needsToSyncStorage(this.userPool)) {
|
|
20
|
-
this.userPool.storage.sync(resolve);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
resolve();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
signOut = async () => {
|
|
27
|
-
await this.syncStoragePromise;
|
|
28
|
-
const user = this.userPool.getCurrentUser();
|
|
29
|
-
if (!user) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
try {
|
|
33
|
-
await new Promise((resolve) => {
|
|
34
|
-
user.signOut(resolve);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
console.error('SignOut error', { extra: JSON.stringify(error) });
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
completeNewPasswordChallenge = ({ username, newPassword, }) => {
|
|
42
|
-
return new Promise((resolve, reject) => {
|
|
43
|
-
this.cognitoUser(username).completeNewPasswordChallenge(newPassword, [], {
|
|
44
|
-
onSuccess: resolve,
|
|
45
|
-
onFailure: reject,
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
resendVerificationCode = async (username) => {
|
|
50
|
-
await this.syncStoragePromise;
|
|
51
|
-
return new Promise((resolve, reject) => {
|
|
52
|
-
this.cognitoUser(username).resendConfirmationCode((err, result) => {
|
|
53
|
-
if (err) {
|
|
54
|
-
reject(err);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
resolve(result);
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
verifyUserEmail = async ({ username, code }) => {
|
|
62
|
-
await this.syncStoragePromise;
|
|
63
|
-
return new Promise((resolve, reject) => {
|
|
64
|
-
this.cognitoUser(username).confirmRegistration(code, true, (error) => {
|
|
65
|
-
if (error) {
|
|
66
|
-
reject(error);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
resolve(true);
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
forgotPassword = async (username) => {
|
|
74
|
-
await this.syncStoragePromise;
|
|
75
|
-
return new Promise((resolve, reject) => {
|
|
76
|
-
this.cognitoUser(username).forgotPassword({
|
|
77
|
-
onSuccess: resolve,
|
|
78
|
-
onFailure: reject,
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
forgotPasswordSubmit = async ({ username, verificationCode, password, }) => {
|
|
83
|
-
await this.syncStoragePromise;
|
|
84
|
-
return new Promise((resolve, reject) => {
|
|
85
|
-
this.cognitoUser(username).confirmPassword(verificationCode, password, {
|
|
86
|
-
onSuccess: resolve,
|
|
87
|
-
onFailure: reject,
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
authenticateUser = async ({ email, password }) => {
|
|
92
|
-
await this.syncStoragePromise;
|
|
93
|
-
const authenticationDetails = new amazon_cognito_identity_js_1.AuthenticationDetails({
|
|
94
|
-
Username: email,
|
|
95
|
-
Password: password,
|
|
96
|
-
});
|
|
97
|
-
return new Promise((resolve, reject) => {
|
|
98
|
-
this.cognitoUser(email).authenticateUser(authenticationDetails, {
|
|
99
|
-
onSuccess: resolve,
|
|
100
|
-
onFailure: reject,
|
|
101
|
-
newPasswordRequired: () => {
|
|
102
|
-
resolve('new-password-required');
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
getCurrentSessionToken = async () => {
|
|
108
|
-
await this.syncStoragePromise;
|
|
109
|
-
const currentUser = this.userPool.getCurrentUser();
|
|
110
|
-
if (!currentUser) {
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
113
|
-
const session = await new Promise((resolve, reject) => {
|
|
114
|
-
currentUser.getSession((err, s) => {
|
|
115
|
-
if (err || !s) {
|
|
116
|
-
reject(err);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
resolve(s);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
const valid = this.isValid(session.getAccessToken().getExpiration());
|
|
124
|
-
if (valid) {
|
|
125
|
-
return session.getAccessToken().getJwtToken();
|
|
126
|
-
}
|
|
127
|
-
const updatedSession = await new Promise((resolve, reject) => {
|
|
128
|
-
currentUser.refreshSession(session.getRefreshToken(), (error, value) => {
|
|
129
|
-
if (error) {
|
|
130
|
-
reject(error);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
resolve(value);
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
return updatedSession.getAccessToken().getJwtToken();
|
|
138
|
-
};
|
|
139
|
-
isValid = (tokenExpiration) => {
|
|
140
|
-
const now = Math.floor(new Date().getTime() / 1000);
|
|
141
|
-
const adjusted = now + 15;
|
|
142
|
-
return adjusted < tokenExpiration;
|
|
143
|
-
};
|
|
144
|
-
cognitoUser = (() => {
|
|
145
|
-
let user;
|
|
146
|
-
return (username) => {
|
|
147
|
-
if (!user || user.getUsername() !== username) {
|
|
148
|
-
user = new amazon_cognito_identity_js_1.CognitoUser({
|
|
149
|
-
Username: username,
|
|
150
|
-
Pool: this.userPool,
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
return user;
|
|
154
|
-
};
|
|
155
|
-
})();
|
|
156
|
-
}
|
|
157
|
-
exports.AWSAuthClient = AWSAuthClient;
|
|
158
|
-
//# sourceMappingURL=auth.js.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AAyB,EAAE,EAAE;gBACnC,IAAI,KAAK,EAAE,CAAC;oBACV,MAAM,CAAC,KAAK,CAAC,CAAA;gBACf,CAAC;qBAAM,CAAC;oBACN,OAAO,CAAC,KAAK,CAAC,CAAA;gBAChB,CAAC;YACH,CAAC,CACF,CAAA;QACH,CAAC,CACF,CAAA;QAED,OAAO,cAAc,CAAC,cAAc,EAAE,CAAC,WAAW,EAAE,CAAA;IACtD,CAAC,CAAA;IAEO,OAAO,GAAG,CAAC,eAAuB,EAAE,EAAE;QAC5C,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;QACnD,MAAM,QAAQ,GAAG,GAAG,GAAG,EAAE,CAAA;QAEzB,OAAO,QAAQ,GAAG,eAAe,CAAA;IACnC,CAAC,CAAA;IAEO,WAAW,GAAG,CAAC,GAAG,EAAE;QAC1B,IAAI,IAA6B,CAAA;QAEjC,OAAO,CAAC,QAAgB,EAAE,EAAE;YAC1B,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,QAAQ,EAAE,CAAC;gBAC7C,IAAI,GAAG,IAAI,wCAAW,CAAC;oBACrB,QAAQ,EAAE,QAAQ;oBAClB,IAAI,EAAE,IAAI,CAAC,QAAQ;iBACpB,CAAC,CAAA;YACJ,CAAC;YAED,OAAO,IAAI,CAAA;QACb,CAAC,CAAA;IACH,CAAC,CAAC,EAAE,CAAA;CACL;AAEQ,sCAAa"}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { AWSAuthClient, CognitoUserSession } from './auth';
|
package/dist/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CognitoUserSession = exports.AWSAuthClient = void 0;
|
|
4
|
-
var auth_1 = require("./auth");
|
|
5
|
-
Object.defineProperty(exports, "AWSAuthClient", { enumerable: true, get: function () { return auth_1.AWSAuthClient; } });
|
|
6
|
-
Object.defineProperty(exports, "CognitoUserSession", { enumerable: true, get: function () { return auth_1.CognitoUserSession; } });
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0D;AAAjD,qGAAA,aAAa,OAAA;AAAE,0GAAA,kBAAkB,OAAA"}
|