securenow 5.16.0 → 5.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli/auth.js +10 -1
  2. package/package.json +1 -1
package/cli/auth.js CHANGED
@@ -58,7 +58,16 @@ async function loginWithBrowser() {
58
58
  }
59
59
 
60
60
  if (token) {
61
- res.end('<html><body style="font-family:system-ui;text-align:center;padding:60px"><h2 style="color:#22c55e">✓ Logged in to SecureNow</h2><p>You can close this window and return to the terminal.</p></body></html>');
61
+ const payload = decodeJwtPayload(token);
62
+ const email = payload?.email || '';
63
+ const emailHtml = email
64
+ ? `<p style="font-size:18px;margin:16px 0 4px">Signed in as <strong>${email.replace(/</g, '&lt;').replace(/>/g, '&gt;')}</strong></p>`
65
+ : '';
66
+ res.end(`<html><body style="font-family:system-ui;text-align:center;padding:60px">` +
67
+ `<h2 style="color:#22c55e">\u2713 Logged in to SecureNow</h2>` +
68
+ emailHtml +
69
+ `<p style="color:#666">You can close this window and return to the terminal.</p>` +
70
+ `</body></html>`);
62
71
  server.close();
63
72
  resolve(token);
64
73
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "securenow",
3
- "version": "5.16.0",
3
+ "version": "5.16.1",
4
4
  "description": "OpenTelemetry instrumentation for Node.js, Next.js, and Nuxt - Send traces and logs to any OTLP-compatible backend",
5
5
  "type": "commonjs",
6
6
  "main": "register.js",