Created
March 27, 2017 10:29
-
-
Save samueljmurray/2dd8b90b833abac0e8e6ff0a10837be3 to your computer and use it in GitHub Desktop.
Session delete action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def delete(conn, _params) do | |
| jwt = Guardian.Plug.current_token(conn) | |
| {:ok, claims} = Guardian.Plug.claims(conn) | |
| Guardian.revoke!(jwt, claims) | |
| # ... | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment