{"repo":"nsweeting/authex","free":true,"listed":false,"github":"https://github.com/nsweeting/authex","clone":"git clone https://github.com/nsweeting/authex.git","description":"Authex is an opinionated JWT authentication and authorization library for Elixir.","language":"Elixir","stars":78,"topics":["elixir","authentication","authorization","jwt","plug","auth","phoenix"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Authex Authex is a simple JWT authentication and authorization library for Elixir. Installation The package can be installed by adding authex to your list of dependencies in mix.exs . In addition, we must also add a JSON encoder/decoder. Jason is recommended. But any of these will work: jiffy, jsone, jsx, ojson, Poison. Finally, if you wish to use any of the plug functionality, make sure to add the plug dependency. Documentation See HexDocs for additional documentation. Example To get started, we must define our auth module: And add it to your supervision tree: We can then create, sign, and verify tokens: We can also convert resources to and from tokens. Please check out the documentation for more advanced features. Features - Easy to integrate with almost any app. - Handles both authentication + authorization. - Convert data to and from tokens. - Handle persistence for things like blacklists. - Batteries included for plug integration.","default_branch":null,"files":null,"tree":[],"storefront":"/r/nsweeting","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nsweeting/authex/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}