API Key Created

Copy your API key now. You won't be able to see it again.

Save this key now!

This is the only time you'll see the full API key. Store it securely.

Name: <%= @api_key.name %>

Application: <%= @api_key.application.name %>

Expires: <%= @api_key.expires_at ? @api_key.expires_at.strftime("%b %d, %Y %H:%M") : "Never" %>

Usage example:

curl -H "Authorization: Bearer <%= @plaintext_token %>" \
     -H "X-Forwarded-Host: your-app.example.com" \
     <%= request.base_url %>/api/verify
<%= link_to "Done", api_keys_path, class: "inline-flex justify-center rounded-md border border-transparent bg-blue-600 py-2 px-4 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900" %>