@illinois-grad/vue-auth

Vue 3 authentication utilities with MSAL integration for Graduate College applications
5,417
Install
npm install @illinois-grad/vue-auth
Latest Version:2.1.18
Vue:3
License:MIT
Last Updated:Oct 16, 2026
Links: GitHub  ·  npm
Maintainer: marvel-uiuc

@illinois-grad/vue-auth

Vue 3 authentication utilities with MSAL (Microsoft Authentication Library) integration for Graduate College applications.

Features

  • MSAL Integration - Complete Entra/Microsoft authentication support
  • Reactive - Built with Vue 3 Composition API
  • Router Guards - Protect routes with authentication
  • User Utilities - Helper functions for user display and avatars
  • Type Safe - Written in TypeScript with full type definitions

Installation

npm install @illinois-grad/vue-auth

Peer Dependencies

This package requires the following peer dependencies:

{
  "@azure/msal-browser": "^5.0.0",
  "pinia": "^3.0.0",
  "vue": "^3.0.0",
  "vue-router": "^4.0.0"
}

When upgrading from MSAL Browser v4, note that request-level logout redirect hooks are no longer supported. If you need to intercept redirect navigation in v5, provide auth.onRedirectNavigate on the top-level MSAL config instead.

When calling code needs a manual recovery path for corrupted local auth state, call auth.clearCacheAndLoginRedirect(). It clears the local MSAL cache, resets the cached account state, and starts a fresh login redirect.

To decide when to show that recovery action, use auth.manualRecoveryRequired or msalStore.manualRecoveryRequired. They check whether the current auth error indicates corrupted local auth state rather than an automatically recoverable redirect flow.

Related Packages

vue-msal

Vue plugin for using Microsoft Authentication Library (MSAL)

38,515 126
vue3-msal

Vue plugin for using Microsoft Authentication Library (MSAL)

4,431 6
vue-msal-2

Vue plugin for using Microsoft Authentication Library (MSAL 2.0) (forked from vu...

2,778 15
msal-vue

Vue plugin for MSAL 2 and up (supports both Vue2 and Vue3)

2,131 3
vue-msal-js

Vue plugin for using Microsoft Authentication Library (MSAL 2.0) (forked from vu...

1,000 0

Version History

Version Released Vue License
2.1.18 >=3 MIT
2.1.17 >=3 MIT
2.1.16 >=3 MIT
2.1.15 >=3 MIT
2.1.14 >=3 MIT