supertokens-node
    Preparing search index...

    Variable getOAuth2Client

    getOAuth2Client: (
        clientId: string,
        userContext?: Record<string, any>,
    ) => Promise<
        | { client: OAuth2Client; status: "OK" }
        | { error: string; errorDescription: string; status: "ERROR" },
    > = Wrapper.getOAuth2Client

    Type declaration

      • (
            clientId: string,
            userContext?: Record<string, any>,
        ): Promise<
            | { client: OAuth2Client; status: "OK" }
            | { error: string; errorDescription: string; status: "ERROR" },
        >
      • Parameters

        • clientId: string
        • OptionaluserContext: Record<string, any>

        Returns Promise<
            | { client: OAuth2Client; status: "OK" }
            | { error: string; errorDescription: string; status: "ERROR" },
        >