git.iko.soy/typeable/servant
on master help sign in
Reword comment so that it actually makes sense!
commit2c0aa36ae9bc628efbba045c31d7531d6dd11866 authorJoeMShanahan <joe.shanahan@tracsis.com> dateMon 17 Jul 2017, 10:51 (9 years ago) parent160cda2
1 file changed+3−3
doc/tutorial/Authentication.lhs+3−3
doc/tutorial/Authentication.lhs+3−3
@@ -286,9 +286,9 @@ method (note: we depend upon `cookie`'s `parseCookies` for this):
286286```haskell
287287import Web.Cookie (parseCookies)
288288
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
291−--- on the cookie, passing it to `lookupAccount`.
289+--- | The auth handler wraps a function from Request -> Handler Account.
290+--- We look for a token in the request headers that we expect to be in the cookie.
291+--- The token is then passed to our `lookupAccount` function.
292292authHandler :: AuthHandler Request Account
293293authHandler = mkAuthHandler handler
294294 where