<% oauth_tokens = rodauth.scope.instance_variable_get(:@oauth_tokens) %> <% tokens_count = oauth_tokens.count %> <% if tokens_count.zero? %>

No oauth tokens yet!

<% else %> <% oauth_tokens.each do |oauth_token| %> <% end %>
<=% rodauth.oauth_applications_name_label %> <=% rodauth.oauth_tokens_token_label %> <=% rodauth.oauth_tokens_refresh_token_label %> <=% rodauth.oauth_tokens_expires_in_label %> <=% rodauth.oauth_tokens_scopes_label %> <%= tokens_count %>
<%= oauth_token[rodauth.oauth_applications_name_column] %> <%= oauth_token[rodauth.oauth_tokens_token_column] %> <%= oauth_token[rodauth.oauth_tokens_refresh_token_column] %> <%= oauth_token[rodauth.oauth_tokens_expires_in_column] %> <%= oauth_token[rodauth.oauth_tokens_scopes_column] %> <%= form_tag rodauth.oauth_token_path(oauth_token[rodauth.oauth_tokens_id_column]), method: :post do %> <%= submit_tag rodauth.oauth_token_revoke_button, class: "btn btn-danger" %> <% end %>
<% end %>