Paramterize AuthProtect with error for each policy
This commit is contained in:
parent
a56fe6f409
commit
8db2a0bb6e
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ data SAuthPolicy (p :: AuthPolicy) where
|
|||
SLax :: SAuthPolicy 'Lax
|
||||
|
||||
-- | the combinator to be used in API types
|
||||
data AuthProtect authdata usr (policy :: AuthPolicy)
|
||||
data AuthProtect authData usr (missingPolicy :: AuthPolicy) missingError (unauthPolicy :: AuthPolicy) unauthError
|
||||
|
||||
-- | A GADT indexed by policy strictness that encompasses the ways
|
||||
-- users will handle the case where authentication data is missing
|
||||
|
|
Loading…
Reference in a new issue