Skip to content

Commit

Permalink
Export authGuard from index as well
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnvanderhorst committed Feb 11, 2020
1 parent aa99c91 commit 1b2df9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@marketredesign/auth0-spa-vue",
"version": "1.0.4",
"version": "1.0.5",
"description": "Vue.js wrapper for auth0-spa-js",
"main": "src/index.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import createAuth0Client from "@auth0/auth0-spa-js";
import { authGuard } from "./authGuard";

/** Define a default action to perform after authentication */
const DEFAULT_REDIRECT_CALLBACK = () =>
Expand All @@ -10,6 +9,8 @@ let instance;
/** Returns the current instance of the SDK */
export const getInstance = () => instance;

export { authGuard } from './authGuard';

class Auth0VueWrapper {
constructor(Vue, {
onRedirectCallback = DEFAULT_REDIRECT_CALLBACK,
Expand Down Expand Up @@ -146,5 +147,3 @@ export const Auth0Plugin = {
Vue.prototype.$auth = useAuth0(Vue, options);
}
};

export const authGuard = authGuard;

0 comments on commit 1b2df9f

Please sign in to comment.