UNPKG

msal-vue2

Version:

Vue plugin for using Microsoft Authentication Library (MSAL)

2 lines (1 loc) 463 B
(function(e,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("@azure/msal-browser")):typeof define=="function"&&define.amd?define(["@azure/msal-browser"],s):(e=typeof globalThis<"u"?globalThis:e||self,e["msal-vue"]=s(e.msalBrowser))})(this,function(e){"use strict";return{install(n,o){class r extends e.PublicClientApplication{constructor(t){super(t)}isAuth(){return!!this.getAllAccounts().length}}const u=new r(o);n.prototype.$msal=u}}});