mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-04 17:03:50 +02:00
Update GitHub module in README
This commit is contained in:
parent
569a85429a
commit
c0a6f11a87
@ -6,12 +6,12 @@ OAuth2 `AuthPlugin`s for Yesod.
|
|||||||
|
|
||||||
```hs
|
```hs
|
||||||
import Yesod.Auth
|
import Yesod.Auth
|
||||||
import Yesod.Auth.OAuth2.Github
|
import Yesod.Auth.OAuth2.GitHub
|
||||||
|
|
||||||
instance YesodAuth App where
|
instance YesodAuth App where
|
||||||
-- ...
|
-- ...
|
||||||
|
|
||||||
authPlugins _ = [oauth2Github clientId clientSecret]
|
authPlugins _ = [oauth2GitHub clientId clientSecret]
|
||||||
|
|
||||||
clientId :: Text
|
clientId :: Text
|
||||||
clientId = "..."
|
clientId = "..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user