on master help sign in
Reword comment so that it actually makes sense!
2c0aa36JoeMShanahan
doc/tutorial/Authentication.lhs+3−3
@@ -286,9 +286,9 @@ method (note: we depend upon `cookie`'s `parseCookies` for this):
286```haskell
286```haskell
287import Web.Cookie (parseCookies)
287import Web.Cookie (parseCookies)
288
288
289−--- | The auth handler wraps a function from Request -> Handler Account
289+--- | The auth handler wraps a function from Request -> Handler Account.
290−--- we look for a Cookie in the header and the perform a token look up
290+--- We look for a token in the request headers that we expect to be in the cookie.
291−--- on the cookie, passing it to `lookupAccount`.
291+--- The token is then passed to our `lookupAccount` function.
292authHandler :: AuthHandler Request Account
292authHandler :: AuthHandler Request Account
293authHandler = mkAuthHandler handler
293authHandler = mkAuthHandler handler
294 where
294 where