Trykno.app - a passwordless authentication service

Phoenix server integration now available

We have released the first version of the Kno elixir library. It ships with a Plug/Phoenix integration.

It takes just two small changes to passwordless authentication to a new phoenix application.

Add the plug middleware to your endpoint.

plug Kno.Plug.Session, success_redirect: "/dashboard"

Add the sign in/out button to your template

<%= Kno.Plug.session_buttons(@conn) %>

Once that has been done any controller can use Kno.Plug.persona_id(conn) to see the authenticated user.

See the docs for setup details.

5 Likes