authentication-api:用于验证用户身份的REST API-源码

上传者: 42119866 | 上传时间: 2021-02-19 21:08:06 | 文件大小: 79KB | 文件类型: ZIP
安全身份验证API 注册/创建新用途 您可以通过向req.body中的注册URI发送HTTP POST请求(包括必要的详细信息)来注册用户,如下所示: 要求 POST / api / auth / signup req.body = {用户名,电子邮件,密码,confromPassword} 回复 { “ message”:“用户注册成功!”, “数据”: { “用户”:{ “ userName”:“ userName”, “ email”:“ ” }, “令牌”: “eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MDJmNjRmZWRjNjc4YzEyMDA1YzlmOGMiLCJ1c2VyTmFtZSI6ImF1dGhtZSIsImVtYWlsIjoic2RmZ2Zkc2dkZkBnbWFpbC5jb20iLCJpYXQiOjE2M

文件下载

资源详情

[{"title":"( 19 个子文件 79KB ) authentication-api:用于验证用户身份的REST API-源码","children":[{"title":"authentication-api-main","children":[{"title":"models","children":[{"title":"joiSchemas.js <span style='color:#111;'> 375B </span>","children":null,"spread":false},{"title":"userSchema.js <span style='color:#111;'> 466B </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"passportConfig.js <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"database-config.js <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"passportJwtConfig.js <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.js <span style='color:#111;'> 1002B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 858B </span>","children":null,"spread":false},{"title":"routes","children":[{"title":"auth.js <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 488B </span>","children":null,"spread":false},{"title":"api.js <span style='color:#111;'> 144B </span>","children":null,"spread":false}],"spread":true},{"title":"Idea","children":[{"title":"flow.jpg <span style='color:#111;'> 46.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"package-lock.json <span style='color:#111;'> 78.73KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"controller","children":[{"title":"userApi.js <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"keys","children":[{"title":"private.key <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"public.key <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"middlewares","children":[{"title":"joi.js <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"password.js <span style='color:#111;'> 429B </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明