Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shmish111 committed Sep 16, 2020
1 parent 89813b4 commit 49db18a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions marlowe-playground-lambda/src/Server.hs
Expand Up @@ -26,6 +26,7 @@ import Data.Aeson (ToJSON, eitherDecode, encode)
import Data.IORef (readIORef)
import Data.Proxy (Proxy (Proxy))
import Data.Text (Text)
import qualified Data.Text as Text
import Language.Marlowe.ACTUS.Definitions.ContractTerms (ContractTerms)
import Language.Marlowe.ACTUS.Generator (genFsContract, genStaticContract)
import Language.Marlowe.Pretty (pretty)
Expand Down Expand Up @@ -71,10 +72,10 @@ data AppConfig = AppConfig {authConfig :: Auth.Config}

initializeContext :: IO AppConfig
initializeContext = do
githubClientId <- getEnv "GITHUB_CLIENT_ID"
githubClientSecret <- getEnv "GITHUB_CLIENT_SECRET"
jwtSignature <- getEnv "JWT_SIGNATURE"
redirectURL <- getEnv "GITHUB_REDIRECT_URL"
githubClientId <- Text.pack <$> getEnv "GITHUB_CLIENT_ID"
githubClientSecret <- Text.pack <$> getEnv "GITHUB_CLIENT_SECRET"
jwtSignature <- Text.pack <$> getEnv "JWT_SIGNATURE"
redirectURL <- Text.pack <$> getEnv "GITHUB_REDIRECT_URL"
let authConfig =
Auth.Config
{ _configJWTSignature = JWT.hmacSecret jwtSignature,
Expand Down

0 comments on commit 49db18a

Please sign in to comment.