Skip to content

Instantly share code, notes, and snippets.

@samueljmurray
Created March 27, 2017 10:29
Show Gist options
  • Select an option

  • Save samueljmurray/2dd8b90b833abac0e8e6ff0a10837be3 to your computer and use it in GitHub Desktop.

Select an option

Save samueljmurray/2dd8b90b833abac0e8e6ff0a10837be3 to your computer and use it in GitHub Desktop.
Session delete action
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