mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-28 13:12:50 +02:00
Restyled by brittany
This commit is contained in:
parent
80a410375a
commit
8427ab4128
@ -23,7 +23,9 @@ module Main where
|
||||
|
||||
import Data.Aeson
|
||||
import Data.Aeson.Encode.Pretty
|
||||
import Data.ByteString.Lazy (fromStrict, toStrict)
|
||||
import Data.ByteString.Lazy ( fromStrict
|
||||
, toStrict
|
||||
)
|
||||
import qualified Data.Map as M
|
||||
import Data.Maybe ( fromJust )
|
||||
import Data.Text ( Text )
|
||||
|
||||
@ -50,7 +50,9 @@ oauth2TwitchScoped scopes clientId clientSecret =
|
||||
`withQuery` [scopeParam " " scopes]
|
||||
, oauth2TokenEndpoint = "https://id.twitch.tv/oauth2/token"
|
||||
`withQuery` [ ("client_id", T.encodeUtf8 clientId)
|
||||
, ("client_secret", T.encodeUtf8 clientSecret)
|
||||
, ( "client_secret"
|
||||
, T.encodeUtf8 clientSecret
|
||||
)
|
||||
]
|
||||
, oauth2RedirectUri = Nothing
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user