Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pothos/packages/plugin-scope-auth/index.ts>ContextForAuth

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
type alias ContextForAuth
import { type ContextForAuth } from "https://deno.land/x/pothos@release-1690733553/packages/plugin-scope-auth/index.ts";

Type Parameters

Types extends SchemaTypes
Scopes
definition: Scopes extends (...args: any[]) => infer R ? ContextForAuth<Types, R> : Scopes extends boolean ? Types["Context"] : keyof Scopes extends infer Scope ? Scope extends keyof Types["AuthContexts"] ? Types["AuthContexts"][Scope] : Scope extends "$any" ? ContextForAuth<Types, Scopes[Scope & keyof Scopes]> : Scope extends "$all" ? UnionToIntersection<ContextForAuth<Types, Scopes[Scope & keyof Scopes]>> : Types["Context"] : never