<% content_for "header" do %> <%= translate(locale, "Token") %> - Invidious <% end %> <% if env.get? "access_token" %>

<%= translate(locale, "Token") %>

<%= translate(locale, "Token manager") %>

<%= translate(locale, "Preferences") %>

<%= env.get "access_token" %>

<% else %>
<% if callback_url %> <%= translate(locale, "Authorize token for `x`?", "#{callback_url.scheme}://#{callback_url.host}") %> <% else %> <%= translate(locale, "Authorize token?") %> <% end %>
    <% scopes.each do |scope| %>
  • <%= HTML.escape(scope) %>
  • <% end %>
<% scopes.each_with_index do |scope, i| %> <% end %> <% if callback_url %> <% end %> <% if expire %> <% end %>
<% end %>