import { default } from "https://deno.land/x/pothos@release-1686440053/packages/plugin-scope-auth/request-cache.ts";
Type Parameters
Types extends SchemaTypes
Properties
mapCache: Map<{ }, MaybePromise<null | AuthFailure>>
scopeCache: Map<keyof Types["AuthScopes"], Map<unknown, MaybePromise<AuthFailure | null>>>
optional
scopes: MaybePromise<ScopeLoaderMap<Types>>typeCache: Map<string, Map<unknown, MaybePromise<null | AuthFailure>>>
typeGrants: Map<string, Map<unknown, MaybePromise<null>>>
Methods
evaluateScopeLoader<T extends keyof Types["AuthScopes"]>()
evaluateScopeMap(): MaybePromise<null | AuthFailure>
evaluateScopeMapWithScopes(): MaybePromise<null | AuthFailure>
unnamed 0: AuthScopeMap<Types>,
scopes: ScopeLoaderMap<Types>,
info: GraphQLResolveInfo | undefined,
forAll: boolean,
evaluateTypeScopeFunction()
authScopes: TypeAuthScopesFunction<Types, unknown>,
type: string,
parent: unknown,
info: GraphQLResolveInfo,
saveGrantedScopes(scopes: readonly string[], path: Path | undefined)
testGrantedScopes(scope: string, path: Path)
withScopes<T>(cb: (scopes: ScopeLoaderMap<Types>) => MaybePromise<T>): MaybePromise<T>
Static Methods
fromContext<T extends SchemaTypes>(context: T["Context"], builder: PothosSchemaTypes.SchemaBuilder<T>): RequestCache<T>