msal-vue2
Version:
Vue plugin for using Microsoft Authentication Library (MSAL)
19 lines (18 loc) • 334 B
JavaScript
import { PublicClientApplication as c } from "@azure/msal-browser";
const r = {
install(s, e) {
class l extends c {
constructor(t) {
super(t);
}
isAuth() {
return !!this.getAllAccounts().length;
}
}
const n = new l(e);
s.prototype.$msal = n;
}
};
export {
r as default
};