Created
January 31, 2022 00:20
-
-
Save MeetMartin/307ddf0e33059cb2c32e9069016ab135 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const checkAuthenticationStatus = request => | |
compose( | |
map(passThrough(response => logger.debug(`DID Authentication Status Response: ${deepInspect(response)}`))), | |
flatMap(response => eitherToAsyncEffect(getJWT(response))), | |
flatMap(() => getAuthenticationByChallengeId(request)), | |
eitherToAsyncEffect, | |
validateRequest, | |
map(passThrough(request => logger.debug(`DID Authentication Status Request: ${deepInspect(request)}`))) | |
)(request); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment