fix: Reusable Pre-Auth Keys no longer show expired when used (#88)

This commit is contained in:
kevinf100
2025-01-18 02:48:50 -05:00
committed by GitHub
parent 698122068d
commit 9bb20024fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export default function AuthKeyRow({ authKey, server }: Props) {
tailscale up --login-server {server} --authkey {authKey.key}
</Code>
<div className="flex gap-4 items-center">
{authKey.used ||
{authKey.used && !authKey.reusable ||
new Date(authKey.expiration) < new Date() ? undefined : (
<ExpireKey authKey={authKey} />
)}