We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa27cd9 commit b9155ccCopy full SHA for b9155cc
logto-sample/app/views/sample/index.html.erb
@@ -3,10 +3,11 @@
3
<p>Is authenticated: <%= @client.is_authenticated? %></p>
4
5
<% if @client.is_authenticated? %>
6
- <%= link_to "Sign out", sign_out_path %>
+ <a href="<%= sign_out_path %>">Sign out</a>
7
+ <p>Welcome, <%= @client.id_token_claims["username"] %></p>
8
<p>Userinfo: <%= @client.fetch_user_info %></p>
9
<!-- Uncomment the following line to fetch the access token claims for a resource -->
10
<!-- <p>Resource access token: <%# @client.access_token_claims(resource: "https://shopping.api/") %></p> -->
11
<% else %>
- <%= link_to "Sign in", sign_in_path %>
12
+ <a href="<%= sign_in_path %>">Sign in</a>
13
<% end %>
0 commit comments