snaplet-sqlite-simple-jwt-auth-0.1.0.0: Snaplet for JWT authentication with snaplet-sqlite-simple

Safe HaskellNone
LanguageHaskell2010

Snap.Snaplet.SqliteSimple.JwtAuth.Types

Synopsis

Documentation

data User Source #

User account User ID and login name.

If you need to store additional fields for your user accounts, persist them in your application SQL tables and key them by userId.

Constructors

User 

Fields

data AuthFailure Source #

Types of errors that can happen on login or new user creation.

Constructors

UnknownUser

The login name does not exist.

DuplicateLogin

The login name already exists.

WrongPassword

Failed the password check.

data HttpError Source #

Constructors

HttpError Int String 

type H a b = Handler a SqliteJwt b Source #