universal-auth:在服务器或客户端上呈现时要使用的通用身份验证

时间:2021-05-11 23:49:23
【文件属性】:
文件名称:universal-auth:在服务器或客户端上呈现时要使用的通用身份验证
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-11 23:49:23
JavaScript 通用身份验证 在服务器或客户端上呈现时要使用的通用身份验证。 目标 提供一个简单,一致且动态的身份验证库,任何前端框架都可以使用该库在服务器或客户端上进行呈现。 安装 $ npm install --save universal-auth 例子 var Auth = require ( 'universal-auth' ) ; // Create new auth object var auth = Auth ( ) ; // User to be used for the session. var user = { name : 'John Doe' , scope : [ 'user' , 'user-123' ] } ; // Sets the user as the session. auth . session . set ( user ) ; // Gets t
【文件预览】:
universal-auth-master
----package.json(823B)
----test()
--------index.js(4KB)
--------intersection.js(937B)
--------render-template.js(1KB)
----LICENSE(1KB)
----dist()
--------universal-auth.js(4KB)
----.gitignore(526B)
----lib()
--------index.js(2KB)
--------intersection.js(298B)
--------render-template.js(768B)
----README.md(4KB)

网友评论