+
+
+ {token.token_key}
+
+
+
+ {token.scopes && (
+
+ Scopes:{" "}
+ {Object.entries(token.scopes)
+ .map(
+ ([resource, actions]) =>
+ `${resource}: ${Array.isArray(actions) ? actions.join(", ") : actions}`,
+ )
+ .join(" | ")}
+
+ )}
+ {token.allowed_ip_ranges?.length > 0 && (
+
+ Allowed IPs:{" "}
+ {token.allowed_ip_ranges.join(", ")}
+
+ )}
+
Created: {format_date(token.created_at)}
+ {token.last_used_at && (
+
+ Last Used: {format_date(token.last_used_at)}
+
+ )}
+ {token.expires_at && (
+
+ Expires: {format_date(token.expires_at)}
+ {new Date(token.expires_at) <
+ new Date() && (
+
+ (Expired)
+
+ )}
+
+ )}
+