Packages

Provides a full user authentication experience for an API. Includes login,logout,register,forgot password, forgot username, confirmation email and all that other good stuff. Includes plug for checking for authenticated users and macro for generating the required routes.

Current section

Files

Jump to
access_pass lib access_token.ex
Raw

lib/access_token.ex

defmodule AccessPass.AccessToken do
@server_name :access_token
def add(refresh_token, meta) do
GenServer.call(@server_name, {:add, refresh_token, meta})
end
def revoke(access_token) do
GenServer.call(@server_name, {:revoke, access_token})
end
def check(access_token) do
GenServer.call(@server_name, {:check, access_token})
end
def swap(access_token) do
GenServer.call(@server_name, {:swap, access_token})
end
end