mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-03 08:23:49 +02:00
Typos and grammar in README
This commit is contained in:
parent
c0a6f11a87
commit
d93594bf97
10
README.md
10
README.md
@ -34,13 +34,13 @@ to support you parsing or fetching additional data yourself.
|
|||||||
|
|
||||||
For example, if you work with GitHub and GitHub user profiles, you likely
|
For example, if you work with GitHub and GitHub user profiles, you likely
|
||||||
already have a model and a way to parse the `/user` response. Rather than
|
already have a model and a way to parse the `/user` response. Rather than
|
||||||
duplicate all that in our own library, we try to make it easy for you to re-use
|
duplicate all that in our library, we try to make it easy for you to re-use that
|
||||||
that code yourself:
|
code yourself:
|
||||||
|
|
||||||
```hs
|
```hs
|
||||||
authenticate creds = do
|
authenticate creds = do
|
||||||
let
|
let
|
||||||
-- You can run your own FromJSON parser on the respose we already have
|
-- You can run your own FromJSON parser on the response we already have
|
||||||
eGitHubUser :: Either String GitHubUser
|
eGitHubUser :: Either String GitHubUser
|
||||||
eGitHubUser = getUserResponseJSON creds
|
eGitHubUser = getUserResponseJSON creds
|
||||||
|
|
||||||
@ -64,8 +64,8 @@ API.
|
|||||||
|
|
||||||
## Local Providers
|
## Local Providers
|
||||||
|
|
||||||
If we don't supply a "Provider" (e.g. GitHub, Google, etc) you need. You can
|
If we don't supply a "Provider" (e.g. GitHub, Google, etc) you need, you can
|
||||||
write your own within your codebase:
|
write your own using our provided `Prelude`:
|
||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
import Yesod.Auth.OAuth2.Prelude
|
import Yesod.Auth.OAuth2.Prelude
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user