interfaceFailHandlerParams{user: UserauthService: AuthServicenext: (route)=>void// available only in router, can be used to navigate as this will only proxy router.push}interfaceVerifierConfig{cache: boolean// if the last value of the verifier should be cachedmatch: any|(val: any)=>boolean// if fxn, matcher function to be used to determine if pass. else will be ==='d to the valueonFail: (error: Error,params: FailHandlerParams)=>boolean}interfaceVerifier{onAuthKey: string// key to use in checklistrouteGuardKey: string// key to use in routerfailMessage: String// for loggingverifier: (verifierConfig: boolean|string|VerifierConfig,user: User,authService: AuthService,sessionStore: SessionStore)=>Promise<{formattedKey?: string,// mainly for loggingvalue: any,// current value of the verifierfailHandler: Function,// to be executed when failed (from verifierConfig)passed: boolean// flag if verifier has passed}>}interfaceRouterOpts={firebaseApp,logoutURL?: string,authURL: string='/login'verifiers: Verifier[]=ServiceOpts.verifiers}interfaceStoreOpts{moduleName: string='auth'}interfaceServiceOpts{// will be used to auto-generate query functionsfirebaseApp?: firebase.AppURL_ACCOUNTS: string='/v3/accounts'URL_EMR_ACCESS: string='/v3/access/emr/data'URL_CMS_ACCESS: string='/v3/access/clinic-management'URL_ACCOUNT_ACCESS: string='/v3/access/my-account'URL_SECRETARY_ACCESS: string='/v3/access/secretary'verifiers: Verifier[]// for registering router guardsrouter: VueRouterrouterOpts?: RouterOpts// for registering built-in store modulesstore: VuexStorestoreOpts?: StoreOpts// and other valid SingleItemSyncService and MultiItemSyncService configs, see @topsi/services docus}
VuexStoreModules
AuthStoreModule
vuexModuleName='auth'interfaceRegeisteredVuexModuleActions{signInWithEmailAndPassword: (email: string,password: string)=>voidsignInWithCustomToken: (token: string)=>void// and the extraActions}interfaceRegisteredVuexModuleextendsRegisteredAuthStoreModule{// see @topsi/services docus for its RegisteredAuthStoreModuleactions: RegeisteredVuexModuleActions}