Improve token auth form instructions in the desktop app (#2804)

Co-authored-by: José Valim <jose.valim@dashbit.co>
This commit is contained in:
Jonatan Kłosko 2024-09-30 16:00:28 +02:00
parent 01af89d2f1
commit 61eea06247

View file

@ -7,18 +7,26 @@
Authentication required Authentication required
</div> </div>
<div class="mb-8 text-sm text-gray-200 space-y-2"> <div class="mb-8 text-sm text-gray-200">
<p :if={@authentication_mode == :password}> <p :if={@authentication_mode == :password}>
Type password to access the Livebook. Type password to access the Livebook.
</p> </p>
<p :if={@authentication_mode == :token}> <div :if={@authentication_mode == :token} class="space-y-2">
Please check out the console for authentication URL or type the token directly <%= if Livebook.Config.app?() do %>
here. <p>
</p> Please open Livebook menu in your taskbar, click "Copy URL", and paste it in your browser's address bar.
<p :if={@authentication_mode == :token}> </p>
To use password authentication, set the <code>LIVEBOOK_PASSWORD</code> <% else %>
environment variable. <p>
</p> Please check out the console for authentication URL or type the token directly
here.
</p>
<% end %>
<p>
To use password authentication, set the <code>LIVEBOOK_PASSWORD</code>
environment variable.
</p>
</div>
</div> </div>
<div class="text-gray-50 w-full"> <div class="text-gray-50 w-full">