supertokens-node
    Preparing search index...

    Variable removeUserRoleConst

    removeUserRole: (
        tenantId: string,
        userId: string,
        role: string,
        userContext?: Record<string, any>,
    ) => Promise<
        | { didUserHaveRole: boolean; status: "OK" }
        | { status: "UNKNOWN_ROLE_ERROR" },
    > = Wrapper.removeUserRole

    Type declaration

      • (
            tenantId: string,
            userId: string,
            role: string,
            userContext?: Record<string, any>,
        ): Promise<
            | { didUserHaveRole: boolean; status: "OK" }
            | { status: "UNKNOWN_ROLE_ERROR" },
        >
      • Parameters

        • tenantId: string
        • userId: string
        • role: string
        • OptionaluserContext: Record<string, any>

        Returns Promise<
            | { didUserHaveRole: boolean; status: "OK" }
            | { status: "UNKNOWN_ROLE_ERROR" },
        >