Skip to content

Commit 6b5abce

Browse files
ivasilovclaude
andauthored
feat: Display OAuth client secret last used time (supabase#37510)
Add display of last_used_at timestamp for OAuth client secrets in Studio. Shows relative time (e.g., "Last used 2 hours ago") when available, or "Never used" for unused secrets. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <[email protected]>
1 parent 1d85aa6 commit 6b5abce

File tree

1 file changed

+8
-0
lines changed
  • apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets

1 file changed

+8
-0
lines changed

apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ export const SecretRow = ({ secret, appId }: SecretRowProps) => {
7474
<p className="text-sm text-foreground-lighter">
7575
Added {isNew ? 'now' : dayjs(secret.created_at).fromNow()} by {generatedByName}
7676
</p>
77+
{secret.last_used_at && (
78+
<p className="text-sm text-foreground-lighter">
79+
Last used {dayjs(secret.last_used_at).fromNow()}
80+
</p>
81+
)}
82+
{!secret.last_used_at && !isNew && (
83+
<p className="text-sm text-foreground-lighter">Never used</p>
84+
)}
7785
</div>
7886
</div>
7987
</div>

0 commit comments

Comments
 (0)