u/thomassummer2021

▲ 8 r/KotlinMultiplatform+1 crossposts

An end-to-end Auth Example with Exposed and Ktor

When I start projects, auth is one of the first things I need to get setup. Recently I was looking into Phoenix with Elixir and I really liked how easily I was able to setup auth with that framework. I started to look into how auth works with ktor. None of the examples from the official ktor-documentation had a full end-to-end solution with saving users in a database etc. I created this example/template to use in my projects going forward. Right now it is just simple form and session auth but I would like to expand it to JWT and Oauth as well as a KMP client. Would love some eyes on it to see if I missed anything or feel free to use it in your projects as a template. https://github.com/horatiothomas/ktor-exposed-auth

u/thomassummer2021 — 11 days ago