supertokens-node
    Preparing search index...

    Variable createPrimaryUserIdOrLinkAccountsConst

    createPrimaryUserIdOrLinkAccounts: (
        tenantId: string,
        recipeUserId: RecipeUserId,
        session?: SessionContainer,
        userContext?: Record<string, any>,
    ) => Promise<User> = Wrapper.createPrimaryUserIdOrLinkAccounts

    Type declaration

      • (
            tenantId: string,
            recipeUserId: RecipeUserId,
            session?: SessionContainer,
            userContext?: Record<string, any>,
        ): Promise<User>
      • This is a function which is a combination of createPrimaryUser and linkAccounts where the input recipeUserId is either linked to a user that it can be linked to, or is made into a primary user.

        The output will be the user ID of the user that it was linked to, or it will be the same as the input recipeUserId if it was made into a primary user, or if there was no linking that happened.

        Parameters

        Returns Promise<User>