【文件属性】:
文件名称:auth0-helpers:auth0-js的帮助器功能
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-04 06:03:43
JavaScript
npm i auth0-helpers
辅助函数。
保持你accessToken通过调用最新checkSession()为您服务。
用法
启动时:
import auth0 from 'auth0-js'
import { initAuthHelpers } from 'auth0-helpers'
const client = new auth0 . WebAuth ( {
domain : 'foo.auth0.com' ,
clientID : 'bar' ,
responseType : 'token' ,
audience : 'https://app.com' ,
scope : 'openid profile myscope'
} )
initAuthHelpers ( {
client ,
usePopup : true ,
authO
【文件预览】:
auth0-helpers-master
----index.js(3KB)
----package.json(743B)
----package-lock.json(65KB)
----.npmignore(0B)
----.gitignore(5B)
----CHANGELOG.md(66B)
----README.md(3KB)