supertokens-node
    Preparing search index...

    Variable createTokenForClientCredentials

    createTokenForClientCredentials: (
        clientId: string,
        clientSecret: string,
        scope?: string[],
        audience?: string,
        userContext?: Record<string, any>,
    ) => Promise<ErrorOAuth2 | TokenInfo> = Wrapper.createTokenForClientCredentials

    Type declaration

      • (
            clientId: string,
            clientSecret: string,
            scope?: string[],
            audience?: string,
            userContext?: Record<string, any>,
        ): Promise<ErrorOAuth2 | TokenInfo>
      • Parameters

        • clientId: string
        • clientSecret: string
        • Optionalscope: string[]
        • Optionalaudience: string
        • OptionaluserContext: Record<string, any>

        Returns Promise<ErrorOAuth2 | TokenInfo>