@envelop/generic-auth 4.2.2-alpha-fd02291.0 → 4.2.2
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/README.md +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ This method is optional; the default method will just verify the value returned
|
|
|
56
56
|
```ts
|
|
57
57
|
import { ValidateUserFn } from '@envelop/generic-auth';
|
|
58
58
|
|
|
59
|
-
const validateUser: ValidateUserFn<UserType> =
|
|
59
|
+
const validateUser: ValidateUserFn<UserType> = (params) => {
|
|
60
60
|
// Here you can implement any custom to check if the user is valid and have access to the server.
|
|
61
61
|
// This method is being triggered in different flows, based on the mode you chose to implement.
|
|
62
62
|
|
|
@@ -86,7 +86,7 @@ type UserType = {
|
|
|
86
86
|
const resolveUserFn: ResolveUserFn<UserType> = async context => {
|
|
87
87
|
/* ... */
|
|
88
88
|
};
|
|
89
|
-
const validateUser: ValidateUserFn<UserType> =
|
|
89
|
+
const validateUser: ValidateUserFn<UserType> = (params) => {
|
|
90
90
|
/* ... */
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -155,7 +155,7 @@ type UserType = {
|
|
|
155
155
|
const resolveUserFn: ResolveUserFn<UserType> = async context => {
|
|
156
156
|
/* ... */
|
|
157
157
|
};
|
|
158
|
-
const validateUser: ValidateUserFn<UserType> = async (
|
|
158
|
+
const validateUser: ValidateUserFn<UserType> = async (params) => {
|
|
159
159
|
/* ... */
|
|
160
160
|
};
|
|
161
161
|
|
|
@@ -200,7 +200,7 @@ type UserType = {
|
|
|
200
200
|
const resolveUserFn: ResolveUserFn<UserType> = async context => {
|
|
201
201
|
/* ... */
|
|
202
202
|
};
|
|
203
|
-
const validateUser: ValidateUserFn<UserType> =
|
|
203
|
+
const validateUser: ValidateUserFn<UserType> = (params) => {
|
|
204
204
|
/* ... */
|
|
205
205
|
};
|
|
206
206
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/generic-auth",
|
|
3
|
-
"version": "4.2.2
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "2.3.2
|
|
6
|
+
"@envelop/core": "^2.3.2",
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@envelop/extended-validation": "1.6.2
|
|
10
|
+
"@envelop/extended-validation": "^1.6.2"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|