Token Actions

@if (token()?.rollout_state === "verify") { } @if (authService.actionAllowed("setpin") || authService.actionsAllowed(["setrandompin", "otp_pin_set_random"])) {
} @if (tokenType() !== "passkey" && authService.actionAllowed("resync")) { } @if (tokenType() !== "passkey") { }
@if (tokenType() === "passkey") { } @if (authService.actionsAllowed(["manage_machine_tokens", "machinelist"])) { @if (tokenType() === "sshkey") { } @else if (tokenType() === "passkey") { @if (isAttachedToMachine()) { } @else { } } @else if (tokenType() === "hotp" && !isAttachedToMachine()) { } } @if ((tokenIsActive() && authService.actionAllowed("disable")) || (!tokenIsActive() && authService.actionAllowed("enable"))) { } @if (authService.actionAllowed("delete")) { } @if (authService.actionAllowed("revoke")) { } @if (authService.tokenRollover().indexOf(tokenType()) >= 0 && rolloverTokenTypes().indexOf(tokenTypeKey()) >= 0) { } @if (authService.actionAllowed("losttoken")) { }