Sign in with a code, made-up data without Plaid, and easier everyday use
- Sign in with a code from your email (the link still works); setup item for the code email - Use made-up data: a pretend bank with three months of spending, no Plaid account needed - Is this your pay? when regular money in is filed as something else, with a one-press fix - They look right: keep every bank-given category in one press - Your week on Home, Plan in the main menu, history start per bank on Accounts - A new version of broke is ready, in the sidebar and Settings - Start skips the rebuild when nothing changed; country screen says it was guessed - Fix: skipping banks no longer sends you back to setup Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
37a97fe20a
commit
73208b79df
30 files changed
+496
-39
No files matched your search
+2
-1
@@ -49,7 +49,8 @@ export function plaidError(e: unknown): { code: string; message: string } {
|
||||
* from live mode (Plaid's sandbox forgets it anyway), so those are only forgotten. Already gone at Plaid counts as done. */
|
||||
export async function revokeItem(item: { access_token: string | null; provider: string | null }) {
|
||||
const testInLive = item.access_token?.startsWith("access-sandbox-") && process.env.PLAID_ENV !== "sandbox";
|
||||
if (item.provider !== "plaid" || testInLive || !item.access_token) return { ok: true as const };
|
||||
const demo = item.access_token?.startsWith("access-sandbox-demo-"); // the made-up bank: nothing at Plaid
|
||||
if (item.provider !== "plaid" || testInLive || demo || !item.access_token) return { ok: true as const };
|
||||
try {
|
||||
await plaid.itemRemove({ access_token: item.access_token });
|
||||
return { ok: true as const };
|
||||
|
||||
Reference in new issue
Block a user