ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.
Any web application with a login system needs a mechanism to track whether your users are actually logged in.
This post will explore the implementation of our very own authentication token library, which you can find here on Github: https://github.com/Brainsware/authtoken
We will go over fleshing out an API for working directly with auth tokens, talk about expiring and refreshing tokens. At the end we’ll cover a router plug to use in a Phoenix project:
Read next Automate pattern matching for structs