Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: Display OAuth client secret last used time (#37510)

Ivan Vasilov6b5abce83b71
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
index f17a280cde7..20717de9729 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
@@ -74,6 +74,14 @@ export const SecretRow = ({ secret, appId }: SecretRowProps) => {
<p className="text-sm text-foreground-lighter">
Added {isNew ? 'now' : dayjs(secret.created_at).fromNow()} by {generatedByName}
</p>
+ {secret.last_used_at && (
+ <p className="text-sm text-foreground-lighter">
+ Last used {dayjs(secret.last_used_at).fromNow()}
+ </p>
+ )}
+ {!secret.last_used_at && !isNew && (
+ <p className="text-sm text-foreground-lighter">Never used</p>
+ )}
</div>
</div>
</div>