<% case @state %> <% when :approved %>

Device approved

<%= @application.name %> now has access to your account. You can return to your terminal — it will continue automatically. You may close this tab.

<% when :denied %>

Request denied

No access was granted. You can close this tab.

<% when :not_allowed %>

Access not allowed

Your account isn't a member of a group permitted to use <%= @application.name %>. Contact an administrator if you think this is a mistake.

<% else %>

<%= @state == :expired ? "Code expired" : (@state == :already_handled ? "Code already used" : "Code not found") %>

Start again from your tool to get a fresh code.

<%= link_to "Enter a different code", device_verification_path, class: "mt-6 inline-block text-sm font-medium text-blue-600 hover:text-blue-500 dark:text-blue-400" %> <% end %>