Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

Can you give a example of the use? #8

Open
farnetani opened this issue Mar 25, 2019 · 1 comment
Open

Can you give a example of the use? #8

farnetani opened this issue Mar 25, 2019 · 1 comment

Comments

@farnetani
Copy link

Can you give a example of the use?

@klarkc
Copy link
Contributor

klarkc commented Mar 25, 2019

Hey, look here: https://github.com/InCuca/vuepress-pass/tree/master/__tests__/fixtures/empty-options

Just replace .vuepress/config.js content with this:

const Pass = require('vuepress-pass');

module.exports = {
  plugins: [
        [Pass, {
            url: 'https://foo.bar/oauth',
            redirectUri: 'https://foo.bar/callback',
            clientId: 'foobar',
            authenticated(redirectQuery) { }, // optional
            unauthenticated(authQuery, redirect) { redirect(authQuery); }, // optional
        }],
    ]
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants