You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OAuth2.oauthClientSecret in hoauth2 is now Maybe Text vs just Text in prior versions
/home/lehins/fpco/wai-middleware-auth/src/Network/Wai/Middleware/Auth/OAuth2.hs:102:33: error:
• Couldn't match expected type ‘Maybe T.Text’
with actual type ‘T.Text’
• In the ‘oauthClientSecret’ field of a record
In the expression:
OA2.OAuth2
{oauthClientId = getClientId oa2ClientId,
oauthClientSecret = getClientSecret oa2ClientSecret,
oauthOAuthorizeEndpoint = authEndpointURI,
oauthAccessTokenEndpoint = accessTokenEndpointURI,
oauthCallback = Just callbackURI}
In an equation for ‘oauth2’:
oauth2
= OA2.OAuth2
{oauthClientId = getClientId oa2ClientId,
oauthClientSecret = getClientSecret oa2ClientSecret,
oauthOAuthorizeEndpoint = authEndpointURI,
oauthAccessTokenEndpoint = accessTokenEndpointURI,
oauthCallback = Just callbackURI}
|
102 | , oauthClientSecret = getClientSecret oa2ClientSecret
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered:
OAuth2.oauthClientSecret
inhoauth2
is nowMaybe Text
vs justText
in prior versionsThe text was updated successfully, but these errors were encountered: