From 79318000bd08c8c3f37ff15c1633551db4a58d10 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 13 Jun 2024 23:32:49 +0800 Subject: [PATCH] refactor: use native a tag --- logto-sample/app/views/sample/index.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/logto-sample/app/views/sample/index.html.erb b/logto-sample/app/views/sample/index.html.erb index 5fcc9d9..8812c4c 100644 --- a/logto-sample/app/views/sample/index.html.erb +++ b/logto-sample/app/views/sample/index.html.erb @@ -3,10 +3,11 @@

Is authenticated: <%= @client.is_authenticated? %>

<% if @client.is_authenticated? %> - <%= link_to "Sign out", sign_out_path %> + Sign out +

Welcome, <%= @client.id_token_claims["username"] %>

Userinfo: <%= @client.fetch_user_info %>

<% else %> - <%= link_to "Sign in", sign_in_path %> + Sign in <% end %>