@envelop/generic-auth 4.0.0 → 4.0.1-alpha-e859732.0

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.
Files changed (2) hide show
  1. package/index.d.ts +4 -2
  2. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -75,6 +75,8 @@ export declare type GenericAuthPluginOptions<UserType extends {} = {}, ContextTy
75
75
  });
76
76
  export declare function defaultProtectAllValidateFn<UserType>(params: ValidateUserFnParams<UserType>): void | UnauthenticatedError;
77
77
  export declare function defaultProtectSingleValidateFn<UserType>(params: ValidateUserFnParams<UserType>): void | UnauthenticatedError;
78
- export declare const useGenericAuth: <UserType extends {} = {}, ContextType extends DefaultContext = DefaultContext>(options: GenericAuthPluginOptions<UserType, ContextType>) => Plugin<{
78
+ declare type PluginContext<UserType> = {
79
79
  validateUser: ValidateUserFn<UserType>;
80
- }>;
80
+ };
81
+ export declare const useGenericAuth: <UserType extends {} = {}, ContextType extends DefaultContext = DefaultContext>(options: GenericAuthPluginOptions<UserType, ContextType>) => Plugin<{}, PluginContext<UserType>>;
82
+ export {};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@envelop/generic-auth",
3
- "version": "4.0.0",
3
+ "version": "4.0.1-alpha-e859732.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^2.1.0",
6
+ "@envelop/core": "2.1.1-alpha-e859732.0",
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@envelop/extended-validation": "^1.4.0"
10
+ "@envelop/extended-validation": "1.4.1-alpha-e859732.0"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",