@quatrain/auth-supabase 1.1.30 → 1.2.1
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.
|
@@ -107,7 +107,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
107
107
|
name: 'John Doe',
|
|
108
108
|
email: 'john@example.com',
|
|
109
109
|
phone: '+1234567890',
|
|
110
|
-
password: 'hashed-password',
|
|
110
|
+
password: 'hashed-password', // NOSONAR
|
|
111
111
|
},
|
|
112
112
|
};
|
|
113
113
|
it('should successfully register a new user', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -122,7 +122,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
122
122
|
const result = yield adapter.register(mockUser, 'clearPassword123');
|
|
123
123
|
expect(mockAuthAdmin.createUser).toHaveBeenCalledWith({
|
|
124
124
|
email: 'john@example.com',
|
|
125
|
-
password: 'clearPassword123',
|
|
125
|
+
password: 'clearPassword123', // NOSONAR
|
|
126
126
|
email_confirm: true,
|
|
127
127
|
});
|
|
128
128
|
expect(result).toEqual(mockSupabaseUser);
|
|
@@ -139,7 +139,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
139
139
|
yield adapter.register(mockUser);
|
|
140
140
|
expect(mockAuthAdmin.createUser).toHaveBeenCalledWith({
|
|
141
141
|
email: 'john@example.com',
|
|
142
|
-
password: 'hashed-password',
|
|
142
|
+
password: 'hashed-password', // NOSONAR
|
|
143
143
|
email_confirm: true,
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
@@ -274,7 +274,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
274
274
|
const result = yield adapter.signup('test@example.com', 'password123');
|
|
275
275
|
expect(mockAuth.signInWithPassword).toHaveBeenCalledWith({
|
|
276
276
|
email: 'test@example.com',
|
|
277
|
-
password: 'password123',
|
|
277
|
+
password: 'password123', // NOSONAR
|
|
278
278
|
});
|
|
279
279
|
expect(result).toEqual({
|
|
280
280
|
user: mockUserData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/auth-supabase",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"author": "Quatrain Développement SAS <developers@quatrain.com>",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@quatrain/auth": "^1.1
|
|
23
|
-
"@quatrain/backend": "^1.
|
|
22
|
+
"@quatrain/auth": "^1.2.1",
|
|
23
|
+
"@quatrain/backend": "^1.2.4",
|
|
24
24
|
"@supabase/supabase-js": "^2.87.3",
|
|
25
25
|
"node-fetch-native": "^1.6.4"
|
|
26
26
|
},
|
|
@@ -41,5 +41,8 @@
|
|
|
41
41
|
"build": "tsc",
|
|
42
42
|
"wbuild": "tsc --watch",
|
|
43
43
|
"bump-to": "yarn version"
|
|
44
|
+
},
|
|
45
|
+
"typedoc": {
|
|
46
|
+
"entryPoint": "src/index.ts"
|
|
44
47
|
}
|
|
45
48
|
}
|
|
@@ -82,7 +82,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
82
82
|
name: 'John Doe',
|
|
83
83
|
email: 'john@example.com',
|
|
84
84
|
phone: '+1234567890',
|
|
85
|
-
password: 'hashed-password',
|
|
85
|
+
password: 'hashed-password', // NOSONAR
|
|
86
86
|
},
|
|
87
87
|
} as unknown as User
|
|
88
88
|
|
|
@@ -101,7 +101,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
101
101
|
|
|
102
102
|
expect(mockAuthAdmin.createUser).toHaveBeenCalledWith({
|
|
103
103
|
email: 'john@example.com',
|
|
104
|
-
password: 'clearPassword123',
|
|
104
|
+
password: 'clearPassword123', // NOSONAR
|
|
105
105
|
email_confirm: true,
|
|
106
106
|
})
|
|
107
107
|
|
|
@@ -123,7 +123,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
123
123
|
|
|
124
124
|
expect(mockAuthAdmin.createUser).toHaveBeenCalledWith({
|
|
125
125
|
email: 'john@example.com',
|
|
126
|
-
password: 'hashed-password',
|
|
126
|
+
password: 'hashed-password', // NOSONAR
|
|
127
127
|
email_confirm: true,
|
|
128
128
|
})
|
|
129
129
|
})
|
|
@@ -314,7 +314,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
314
314
|
|
|
315
315
|
expect(mockAuth.signInWithPassword).toHaveBeenCalledWith({
|
|
316
316
|
email: 'test@example.com',
|
|
317
|
-
password: 'password123',
|
|
317
|
+
password: 'password123', // NOSONAR
|
|
318
318
|
})
|
|
319
319
|
|
|
320
320
|
expect(result).toEqual({
|