Hitting the delete route and deleting the token

This commit is contained in:
Belen Curcio
2018-08-16 12:20:56 -03:00
parent e704c6d968
commit a48bcc3076
3 changed files with 17 additions and 15 deletions
+5
View File
@@ -69,11 +69,16 @@ function createNewAuthRouter(app: AppOptions, options: RouterOptions) {
express.json(),
wrapAuthn(options.passport, app.signingConfig, "local")
);
// TODO (bc) - add delete user serverside
router.delete("/local", express.json());
router.post(
"/local/signup",
express.json(),
signupHandler({ db: app.mongo, signingConfig: app.signingConfig })
);
router.post("/sso", wrapAuthn(options.passport, app.signingConfig, "sso"));
router.get("/oidc", wrapAuthn(options.passport, app.signingConfig, "oidc"));
router.get(