VuePress Pass
VuePress oauth2 plugin
Usage
npm i --save InCuca/vuepress-pass
.vuepress/config.js:
const Pass = ; moduleexports = plugins: Pass url: 'https://foo.bar/oauth' redirectUri: 'https://foo.bar/callback' clientId: 'foobar' { ; } // optional { ; } // optional { localStorage; } // optional { return localStorage; } // optional ;
- authenticated is called when user comes back from provider authentication
- unauthenticated is called when user need's authentication on provide and will redirect (through redirect function)