Created
November 19, 2021 04:42
-
-
Save MeetMartin/55bf2f95ee480e75efccd62374dfd961 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
import { authentication } from 'didauth'; | |
authentication(payload) | |
.trigger | |
(errors => console.log(errors) || ({ | |
statusCode: 500, | |
body: 'Internal Server Error' | |
})) | |
(JWSURL => ({ | |
statusCode: 301, | |
headers: { | |
locations: JWSURL | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment