import Attribute from '~/components/Attribute'; import Button from '~/components/Button'; import Code from '~/components/Code'; import type { PreAuthKey, User } from '~/types'; import toast from '~/utils/toast'; import ExpireAuthKey from './dialogs/expire-auth-key'; interface Props { authKey: PreAuthKey; user: User; url: string; } export default function AuthKeyRow({ authKey, user, url }: Props) { const createdAt = new Date(authKey.createdAt).toLocaleString(); const expiration = new Date(authKey.expiration).toLocaleString(); return (
To use this key, run the following command on your device:
tailscale up --login-server={url} --authkey {authKey.key}