@fonoster/identity 0.15.1 → 0.15.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/dist/exchanges/createExchangeCredentials.js +0 -7
- package/dist/exchanges/createExchangeOauth2Code.js +0 -7
- package/dist/generated/@prisma/client/edge.js +6 -6
- package/dist/generated/@prisma/client/index-browser.js +4 -4
- package/dist/generated/@prisma/client/index.d.ts +2 -2
- package/dist/generated/@prisma/client/index.js +6 -6
- package/dist/generated/@prisma/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/dist/generated/@prisma/client/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/generated/@prisma/client/package.json +16 -6
- package/dist/generated/@prisma/client/runtime/edge-esm.js +18 -18
- package/dist/generated/@prisma/client/runtime/edge.js +18 -18
- package/dist/generated/@prisma/client/runtime/library.d.ts +63 -23
- package/dist/generated/@prisma/client/runtime/library.js +41 -41
- package/dist/generated/@prisma/client/runtime/react-native.js +21 -21
- package/dist/generated/@prisma/client/runtime/wasm-compiler-edge.js +83 -0
- package/dist/generated/@prisma/client/runtime/wasm-engine-edge.js +35 -0
- package/dist/generated/@prisma/client/wasm.js +4 -4
- package/package.json +5 -5
- package/dist/utils/verificationRequiredButNotProvided.d.ts +0 -24
- package/dist/utils/verificationRequiredButNotProvided.js +0 -7
|
@@ -66,7 +66,6 @@ const logger_1 = require("@fonoster/logger");
|
|
|
66
66
|
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
67
67
|
const createGetUserByEmail_1 = require("../utils/createGetUserByEmail");
|
|
68
68
|
const createIsValidVerificationCode_1 = require("../utils/createIsValidVerificationCode");
|
|
69
|
-
const verificationRequiredButNotProvided_1 = require("../utils/verificationRequiredButNotProvided");
|
|
70
69
|
const verification_1 = require("../verification");
|
|
71
70
|
const exchangeTokens_1 = require("./exchangeTokens");
|
|
72
71
|
const logger = (0, logger_1.getLogger)({ service: "identity", filePath: __filename });
|
|
@@ -83,12 +82,6 @@ function createExchangeCredentials(prisma, identityConfig) {
|
|
|
83
82
|
message: "Invalid credentials"
|
|
84
83
|
});
|
|
85
84
|
}
|
|
86
|
-
if ((0, verificationRequiredButNotProvided_1.verificationRequiredButNotProvided)(identityConfig, user)) {
|
|
87
|
-
return callback({
|
|
88
|
-
code: grpc.status.PERMISSION_DENIED,
|
|
89
|
-
message: "User contact information not verified"
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
85
|
// TODO: Rename verifcation methods to be more generic
|
|
93
86
|
// At the moment name would suggest that 2FA and verification are the same thing
|
|
94
87
|
if (identityConfig.twoFactorAuthenticationRequired) {
|
|
@@ -66,7 +66,6 @@ const logger_1 = require("@fonoster/logger");
|
|
|
66
66
|
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
67
67
|
const createGetUserByEmail_1 = require("../utils/createGetUserByEmail");
|
|
68
68
|
const getGitHubUserWithOauth2Code_1 = require("../utils/getGitHubUserWithOauth2Code");
|
|
69
|
-
const verificationRequiredButNotProvided_1 = require("../utils/verificationRequiredButNotProvided");
|
|
70
69
|
const exchangeTokens_1 = require("./exchangeTokens");
|
|
71
70
|
const logger = (0, logger_1.getLogger)({ service: "identity", filePath: __filename });
|
|
72
71
|
function createExchangeOauth2Code(prisma, identityConfig) {
|
|
@@ -86,12 +85,6 @@ function createExchangeOauth2Code(prisma, identityConfig) {
|
|
|
86
85
|
message: "Invalid credentials"
|
|
87
86
|
});
|
|
88
87
|
}
|
|
89
|
-
if ((0, verificationRequiredButNotProvided_1.verificationRequiredButNotProvided)(identityConfig, user)) {
|
|
90
|
-
return callback({
|
|
91
|
-
code: grpc.status.PERMISSION_DENIED,
|
|
92
|
-
message: "User contact information not verified"
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
88
|
callback(null, yield (0, exchangeTokens_1.exchangeTokens)(prisma, identityConfig)(user.accessKeyId));
|
|
96
89
|
});
|
|
97
90
|
return (0, common_1.withErrorHandlingAndValidation)(exchangeOauth2Code, common_1.exchangeOauth2RequestSchema);
|
|
@@ -35,12 +35,12 @@ exports.Prisma = Prisma
|
|
|
35
35
|
exports.$Enums = {}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Prisma Client JS version: 6.
|
|
39
|
-
* Query Engine version:
|
|
38
|
+
* Prisma Client JS version: 6.12.0
|
|
39
|
+
* Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc
|
|
40
40
|
*/
|
|
41
41
|
Prisma.prismaVersion = {
|
|
42
|
-
client: "6.
|
|
43
|
-
engine: "
|
|
42
|
+
client: "6.12.0",
|
|
43
|
+
engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc"
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
@@ -227,8 +227,8 @@ const config = {
|
|
|
227
227
|
"rootEnvPath": null
|
|
228
228
|
},
|
|
229
229
|
"relativePath": "../../../..",
|
|
230
|
-
"clientVersion": "6.
|
|
231
|
-
"engineVersion": "
|
|
230
|
+
"clientVersion": "6.12.0",
|
|
231
|
+
"engineVersion": "8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
|
|
232
232
|
"datasourceNames": [
|
|
233
233
|
"db"
|
|
234
234
|
],
|
|
@@ -20,12 +20,12 @@ exports.Prisma = Prisma
|
|
|
20
20
|
exports.$Enums = {}
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Prisma Client JS version: 6.
|
|
24
|
-
* Query Engine version:
|
|
23
|
+
* Prisma Client JS version: 6.12.0
|
|
24
|
+
* Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc
|
|
25
25
|
*/
|
|
26
26
|
Prisma.prismaVersion = {
|
|
27
|
-
client: "6.
|
|
28
|
-
engine: "
|
|
27
|
+
client: "6.12.0",
|
|
28
|
+
engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc"
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
@@ -314,8 +314,8 @@ export namespace Prisma {
|
|
|
314
314
|
export import Exact = $Public.Exact
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
|
-
* Prisma Client JS version: 6.
|
|
318
|
-
* Query Engine version:
|
|
317
|
+
* Prisma Client JS version: 6.12.0
|
|
318
|
+
* Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc
|
|
319
319
|
*/
|
|
320
320
|
export type PrismaVersion = {
|
|
321
321
|
client: string
|
|
@@ -35,12 +35,12 @@ exports.Prisma = Prisma
|
|
|
35
35
|
exports.$Enums = {}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Prisma Client JS version: 6.
|
|
39
|
-
* Query Engine version:
|
|
38
|
+
* Prisma Client JS version: 6.12.0
|
|
39
|
+
* Query Engine version: 8047c96bbd92db98a2abc7c9323ce77c02c89dbc
|
|
40
40
|
*/
|
|
41
41
|
Prisma.prismaVersion = {
|
|
42
|
-
client: "6.
|
|
43
|
-
engine: "
|
|
42
|
+
client: "6.12.0",
|
|
43
|
+
engine: "8047c96bbd92db98a2abc7c9323ce77c02c89dbc"
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
@@ -228,8 +228,8 @@ const config = {
|
|
|
228
228
|
"rootEnvPath": null
|
|
229
229
|
},
|
|
230
230
|
"relativePath": "../../../..",
|
|
231
|
-
"clientVersion": "6.
|
|
232
|
-
"engineVersion": "
|
|
231
|
+
"clientVersion": "6.12.0",
|
|
232
|
+
"engineVersion": "8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
|
|
233
233
|
"datasourceNames": [
|
|
234
234
|
"db"
|
|
235
235
|
],
|
|
Binary file
|
|
Binary file
|
|
@@ -81,6 +81,10 @@
|
|
|
81
81
|
},
|
|
82
82
|
"./runtime/client": {
|
|
83
83
|
"types": "./runtime/client.d.ts",
|
|
84
|
+
"node": {
|
|
85
|
+
"require": "./runtime/client.js",
|
|
86
|
+
"default": "./runtime/client.js"
|
|
87
|
+
},
|
|
84
88
|
"require": "./runtime/client.js",
|
|
85
89
|
"import": "./runtime/client.mjs",
|
|
86
90
|
"default": "./runtime/client.mjs"
|
|
@@ -97,11 +101,17 @@
|
|
|
97
101
|
"import": "./runtime/binary.mjs",
|
|
98
102
|
"default": "./runtime/binary.mjs"
|
|
99
103
|
},
|
|
100
|
-
"./runtime/wasm": {
|
|
101
|
-
"types": "./runtime/wasm.d.ts",
|
|
102
|
-
"require": "./runtime/wasm.js",
|
|
103
|
-
"import": "./runtime/wasm.mjs",
|
|
104
|
-
"default": "./runtime/wasm.mjs"
|
|
104
|
+
"./runtime/wasm-engine-edge": {
|
|
105
|
+
"types": "./runtime/wasm-engine-edge.d.ts",
|
|
106
|
+
"require": "./runtime/wasm-engine-edge.js",
|
|
107
|
+
"import": "./runtime/wasm-engine-edge.mjs",
|
|
108
|
+
"default": "./runtime/wasm-engine-edge.mjs"
|
|
109
|
+
},
|
|
110
|
+
"./runtime/wasm-compiler-edge": {
|
|
111
|
+
"types": "./runtime/wasm-compiler-edge.d.ts",
|
|
112
|
+
"require": "./runtime/wasm-compiler-edge.js",
|
|
113
|
+
"import": "./runtime/wasm-compiler-edge.mjs",
|
|
114
|
+
"default": "./runtime/wasm-compiler-edge.mjs"
|
|
105
115
|
},
|
|
106
116
|
"./runtime/edge": {
|
|
107
117
|
"types": "./runtime/edge.d.ts",
|
|
@@ -135,6 +145,6 @@
|
|
|
135
145
|
},
|
|
136
146
|
"./*": "./*"
|
|
137
147
|
},
|
|
138
|
-
"version": "6.
|
|
148
|
+
"version": "6.12.0",
|
|
139
149
|
"sideEffects": false
|
|
140
150
|
}
|