Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created November 19, 2021 04:42
Show Gist options
  • Save MeetMartin/55bf2f95ee480e75efccd62374dfd961 to your computer and use it in GitHub Desktop.
Save MeetMartin/55bf2f95ee480e75efccd62374dfd961 to your computer and use it in GitHub Desktop.
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