We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7af772 commit 54fe259Copy full SHA for 54fe259
README.md
@@ -140,10 +140,10 @@ instance authenticatableUser :: Authenticatable Pool User where
140
authenticate = do
141
{ http } <- askRaw
142
case lookup "authorization" $ requestHeaders http of
143
- Nothing -> throwError $ error "unauthorized"
+ Nothing -> pure Nothing
144
Just x -> do
145
pool <- askExtra
146
- liftAff $ withPool (selectUserFromToken x) pool
+ liftAff $ Just <$> withPool (selectUserFromToken x) pool
147
```
148
149
Then, define request handlers with `Auth`.
0 commit comments