import { default } from "https://deno.land/x/pothos@release-1730496474/packages/plugin-scope-auth/request-cache.ts";
Type Parameters
Types extends SchemaTypes
Properties
mapCache: Map<{ }, MaybePromise<AuthFailure | null>>
scopeCache: Map<keyof Types["AuthScopes"], Map<unknown, MaybePromise<AuthFailure | null>>>
optional
scopes: MaybePromise<ScopeLoaderMap<Types>>typeCache: Map<string, Map<unknown, MaybePromise<AuthFailure | null>>>
typeGrants: Map<string, Map<unknown, MaybePromise<null>>>
Methods
evaluateScopeLoader<T extends keyof Types["AuthScopes"]>()
evaluateScopeMap(): MaybePromise<AuthFailure | null>
evaluateScopeMapWithScopes(): MaybePromise<AuthFailure | null>
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
clearForContext<T extends SchemaTypes>(context: T["Context"]): void
fromContext<T extends SchemaTypes>(context: T["Context"], builder: PothosSchemaTypes.SchemaBuilder<T>): RequestCache<T>