1.3.6 • Published 1 year ago

jv3-login-jwt v1.3.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

jv3-jwt

install

npm install jv3-login-jwt

init to Vue3 app

/* main.js */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router/example-router";

// install plugins
import auth from "jv3-jwt";

const app = createApp(App);
app.use(auth, {
    router,
    url: "http://localhost:8080",
    // apiUrl: "/auth",
    path_login: "auth/basic/verify",
    path_refresh: "auth/basic/refresh",
    path_user: "user/me",
    login: () => {},
    logout: () => {},
    exceptions: [],
    jwtStorage: "jwt",
    authStorage: "jauth",
    defaultRoutePath: "/",
    customLogin: () => {},
    callbackLogin: () => {},
    customLogout: () => {},
    callbackLogout: () => {},
    handleError: (error) => {
        console.log(error);
    },
    title: "Sigin",
    hello: "Hello นี้คือระบบล็อกอิน แบบง่าย"
});

app.use(router);
app.mount("#app");
1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.0

1 year ago

1.2.0-5

3 years ago

1.2.0-4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.2.0-1

3 years ago

1.2.0-3

3 years ago

1.2.0-2

3 years ago

1.1.0

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago