Reword comment so that it actually makes sense!
This commit is contained in:
parent
160cda2602
commit
2c0aa36ae9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue