supertokens-node
    Preparing search index...

    Variable getPrimaryUserThatCanBeLinkedToRecipeUserIdConst

    getPrimaryUserThatCanBeLinkedToRecipeUserId: (
        tenantId: string,
        recipeUserId: RecipeUserId,
        userContext?: Record<string, any>,
    ) => Promise<undefined | User> = Wrapper.getPrimaryUserThatCanBeLinkedToRecipeUserId

    Type declaration

      • (
            tenantId: string,
            recipeUserId: RecipeUserId,
            userContext?: Record<string, any>,
        ): Promise<undefined | User>
      • This function returns the primary user that the input recipe ID can be linked to. It can be used to determine which primary account the linking will happen to if the input recipe user ID was to be linked.

        If the function returns undefined, it means that there is no primary user that the input recipe ID can be linked to, and therefore it can be made into a primary user itself.

        Parameters

        • tenantId: string
        • recipeUserId: RecipeUserId
        • OptionaluserContext: Record<string, any>

        Returns Promise<undefined | User>