Module
Bucketchain.SimpleAPI.Auth.Class
- Package
- purescript-bucketchain-simple-api
- Repository
- Bucketchain/purescript-bucketchain-simple-api
#Authenticatable Source
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 Action
.
a
is a authenticated result. It is typically user data.
If you call throwError
in authenticate
implementation, a server responds 401.
Members
authenticate :: Action ex a
- Modules
- Bucketchain.
SimpleAPI - Bucketchain.
SimpleAPI. Action - Bucketchain.
SimpleAPI. Auth - Bucketchain.
SimpleAPI. Auth. Class - Bucketchain.
SimpleAPI. Batch - Bucketchain.
SimpleAPI. Body - Bucketchain.
SimpleAPI. Class - Bucketchain.
SimpleAPI. JSON - Bucketchain.
SimpleAPI. RawData - Bucketchain.
SimpleAPI. Response - Bucketchain.
SimpleAPI. Response. Class