Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

show machine user help text

Steven Teyf310d40b31da
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page.tsx
index 6743ad190b..71b31e4789 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/members/page.tsx
@@ -199,9 +199,23 @@ export default function WorkspaceMembersPage() {
)}
</h3>
<p className="text-xs text-neutral-500">
- {status === "invited"
- ? `Invited ${timeAgo(user.createdAt)}`
- : user.email}
+ {status === "invited" ? (
+ `Invited ${timeAgo(user.createdAt)}`
+ ) : user.isMachine ? (
+ <>
+ Machine user for API authentication.{" "}
+ <a
+ href="https://dub.co/docs/api-reference/authentication#machine-users"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="underline decoration-dotted underline-offset-2 transition-colors hover:text-neutral-800"
+ >
+ Learn more ↗
+ </a>
+ </>
+ ) : (
+ user.email
+ )}
</p>
</div>
</div>