Skip to content

Credential handeling not for login  #32

@rompemoldes

Description

@rompemoldes

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions