Safe Haskell | None |
---|---|
Language | Haskell2010 |
Snap.Snaplet.SqliteSimple.JwtAuth.Types
- data SqliteJwt = SqliteJwt {}
- data User = User {}
- data LoginParams = LoginParams {}
- data AuthFailure
- data HttpError = HttpError Int String
- type H a b = Handler a SqliteJwt b
Documentation
Constructors
SqliteJwt | |
Fields |
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 | |
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. |
Instances