import { default } from "https://deno.land/x/pothos@release-1677173079/packages/plugin-scope-auth/request-cache.ts";
Properties
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,
grantTypeScopes()
type: string,
parent: unknown,
path: Path | undefined,
cb: () => MaybePromise<string[]>,
saveGrantedScopes(scopes: 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>