@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Variable redeemAccessCodeConst

    redeemAccessCode: (
        ...args: [
            {
                code?: string;
                email: string;
                hub: HubHttpClient;
                identity: Identity;
            },
        ],
    ) => Effect<
        { accountId: string; email: string; emailVerificationSent: boolean },
        {
            cause?: unknown;
            context: Record<string, unknown>;
            name: "AccountRedemptionError";
            stack?: string;
            get _tag(): Name;
            get message(): string;
        },
        never,
    > = ...

    Redeem an access code against hub-service to mint the Account, binding it to the local identity. Codes are anonymous at issue time, so the address is supplied here: user-entered on the email path, provider-verified on the OAuth path.

    Type declaration

      • (
            ...args: [
                {
                    code?: string;
                    email: string;
                    hub: HubHttpClient;
                    identity: Identity;
                },
            ],
        ): Effect<
            { accountId: string; email: string; emailVerificationSent: boolean },
            {
                cause?: unknown;
                context: Record<string, unknown>;
                name: "AccountRedemptionError";
                stack?: string;
                get _tag(): Name;
                get message(): string;
            },
            never,
        >
      • Parameters

        • ...args: [{ code?: string; email: string; hub: HubHttpClient; identity: Identity }]

        Returns Effect<
            { accountId: string; email: string; emailVerificationSent: boolean },
            {
                cause?: unknown;
                context: Record<string, unknown>;
                name: "AccountRedemptionError";
                stack?: string;
                get _tag(): Name;
                get message(): string;
            },
            never,
        >