-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I will like to give have the option of submitting more credentials after the login process. I think this would visualise better that the last step of the login is just a credential verification. And that if you have the code for one thing, you can use it for the other.
Something like this should come inside server.ts:
// TODO:
// Manage Credentials:
/* eslint-disable import/order*/
import { buildCredentialRequest } from './credentials/buildCredentialRequest'
import { verifySubmittedCredential } from './credentials/verifySubmittedCredential'
app.get(
'/api/credential/getRequest',
(req: Request, res: Response, next: NextFunction) =>
buildCredentialRequest(req, res, cTypeRequest).catch(next)
)
app.post(
'/api/credential/postSubmit',
(req: Request, res: Response, next: NextFunction) =>
verifySubmittedCredential(req, res, cTypeRequest).catch(next)
)
Metadata
Metadata
Assignees
Labels
No labels