Module

Bucketchain.SimpleAPI.Auth.Class

#Authenticatable

class Authenticatable ex a  where

A typeclass for authentication.

ex is any extra data. It is typically global context such as db connection and can be used in Proc.

a is a authenticated result. It is typically user data.

If you return Nothing in authenticate implementation, a server responds 401.

Members

Modules