supertokens-node
    Preparing search index...

    Variable getUserIdMapping

    getUserIdMapping: (
        input: {
            userContext?: Record<string, any>;
            userId: string;
            userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY";
        },
    ) => Promise<
        | {
            externalUserId: string;
            externalUserIdInfo: undefined
            | string;
            status: "OK";
            superTokensUserId: string;
        }
        | { status: "UNKNOWN_MAPPING_ERROR" },
    > = SuperTokensWrapper.getUserIdMapping

    Type declaration

      • (
            input: {
                userContext?: Record<string, any>;
                userId: string;
                userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY";
            },
        ): Promise<
            | {
                externalUserId: string;
                externalUserIdInfo: undefined
                | string;
                status: "OK";
                superTokensUserId: string;
            }
            | { status: "UNKNOWN_MAPPING_ERROR" },
        >
      • Parameters

        • input: {
              userContext?: Record<string, any>;
              userId: string;
              userIdType?: "SUPERTOKENS" | "EXTERNAL" | "ANY";
          }

        Returns Promise<
            | {
                externalUserId: string;
                externalUserIdInfo: undefined
                | string;
                status: "OK";
                superTokensUserId: string;
            }
            | { status: "UNKNOWN_MAPPING_ERROR" },
        >