Skip to main content

Account Management

AlogameAccount wraps the native SDK's account deletion flow — a 2-step confirm followed by a 30-day soft-delete hold, matching Alogame's account deletion policy across all platforms.

Not yet exercised by a real game integration

Like Push, this is wired and functional but has zero call sites in the two reference apps this bridge was validated against — treat it as less battle-tested than payment/analytics.

Request deletion

import { AlogameAccount } from 'alogame-sdk';

const result = await AlogameAccount.requestDeletion();
if (result.success) {
// Starts the 30-day hold — inform the player they can cancel any time
// before it completes by logging back in and calling cancelDeletion().
}

Cancel a pending deletion

const result = await AlogameAccount.cancelDeletion();

Check status

const status = await AlogameAccount.getStatus();
console.log(status.status); // e.g. "active" | "pending_delete"
console.log(status.scheduledAt); // ISO date, if pending — otherwise null
console.log(status.daysRemaining); // countdown, if pending — otherwise null

Next step

Floating Button