Skip to main content

authenticated

Callable

  • authenticated<CustomRoot, CustomArgs, CustomContext, Info, ReturnType>(func: (root: CustomRoot, args: CustomArgs, context: CustomContext, info: Info) => ReturnType | Promise<ReturnType>): (root: CustomRoot, args: CustomArgs, context: CustomContext, info: Info) => Promise<ReturnType>

  • Type parameters

    • CustomRoot
    • CustomArgs
    • CustomContext: { skipJSAccountsVerification?: Boolean; user?: any; userId?: any }
    • Info
    • ReturnType

    Parameters

    • func: (root: CustomRoot, args: CustomArgs, context: CustomContext, info: Info) => ReturnType | Promise<ReturnType>

    Returns (root: CustomRoot, args: CustomArgs, context: CustomContext, info: Info) => Promise<ReturnType>

      • (root: CustomRoot, args: CustomArgs, context: CustomContext, info: Info): Promise<ReturnType>
      • Parameters

        • root: CustomRoot
        • args: CustomArgs
        • context: CustomContext
        • info: Info

        Returns Promise<ReturnType>