Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credential handeling not for login #32

Open
kilted-andres opened this issue Aug 1, 2023 · 0 comments
Open

Credential handeling not for login #32

kilted-andres opened this issue Aug 1, 2023 · 0 comments

Comments

@kilted-andres
Copy link
Contributor

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)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant