We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f744f44 commit 5a6fcbcCopy full SHA for 5a6fcbc
worker/src/routes/auth.ts
@@ -306,11 +306,16 @@ authRoutes.post('/verify', async (c) => {
306
pendingEmails = result?.count || 0;
307
}
308
309
+ const email = account?.handle
310
+ ? `${account.handle}@${c.env.DOMAIN}`
311
+ : (suggestedHandle ? `${suggestedHandle}@${c.env.DOMAIN}` : null);
312
+
313
return c.json({
314
token,
315
refresh_token,
316
wallet,
317
handle: account?.handle || null,
318
+ email,
319
registered: !!account,
320
basename,
321
tier: account?.tier || 'free',
0 commit comments