@illinois-grad/vue-auth
| Install | |
|---|---|
npm install @illinois-grad/vue-auth |
|
| Latest Version: | 2.1.18 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 16, 2026 |
| Links: | GitHub · npm |
@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 plugin for using Microsoft Authentication Library (MSAL 2.0) (forked from vu...
Vue plugin for using Microsoft Authentication Library (MSAL 2.0) (forked from vu...
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 | |
| 2.1.13 | >=3 | MIT | |
| 2.1.12 | >=3 | MIT | |
| 2.1.11 | >=3 | MIT | |
| 2.1.10 | >=3 | MIT | |
| 2.1.9 | >=3 | MIT | |
| 2.1.8 | >=3 | MIT | |
| 2.1.7 | >=3 | MIT | |
| 2.1.6 | >=3 | MIT | |
| 2.1.5 | ^3.5.27 | MIT | |
| 2.1.4 | ^3.5.27 | MIT | |
| 2.1.3 | ^3.5.27 | MIT | |
| 2.1.2 | ^3.5.27 | MIT | |
| 2.1.1 | ^3.5.27 | MIT | |
| 2.1.0 | ^3.5.27 | MIT | |
| 2.0.15 | ^3.5.27 | MIT | |
| 2.0.14 | ^3.5.27 | MIT | |
| 2.0.13 | ^3.5.27 | MIT | |
| 2.0.12 | ^3.5.27 | MIT | |
| 2.0.11 | ^3.5.27 | MIT | |
| 2.0.10 | ^3.5.27 | MIT | |
| 2.0.9 | ^3.5.27 | MIT | |
| 2.0.8 | ^3.5.27 | MIT | |
| 2.0.7 | ^3.5.27 | MIT | |
| 2.0.6 | ^3.5.27 | MIT | |
| 2.0.5 | ^3.5.27 | MIT |
Showing the latest 30 of 32. See every release on npm