Empex Los Angeles Automate pattern matching for structs

Simple encrypted auth tokens for Phoenix

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:

https://sealas.at/blog/2018-01/encrypted-auth-tokens-for-phoenix-auth-part-2/