Reword comment so that it actually makes sense!

This commit is contained in:
JoeMShanahan 2017-07-17 10:51:08 +01:00
parent 160cda2602
commit 2c0aa36ae9

View File

@ -286,9 +286,9 @@ method (note: we depend upon `cookie`'s `parseCookies` for this):
```haskell ```haskell
import Web.Cookie (parseCookies) import Web.Cookie (parseCookies)
--- | The auth handler wraps a function from Request -> Handler Account --- | The auth handler wraps a function from Request -> Handler Account.
--- we look for a Cookie in the header and the perform a token look up --- We look for a token in the request headers that we expect to be in the cookie.
--- on the cookie, passing it to `lookupAccount`. --- The token is then passed to our `lookupAccount` function.
authHandler :: AuthHandler Request Account authHandler :: AuthHandler Request Account
authHandler = mkAuthHandler handler authHandler = mkAuthHandler handler
where where