2 Commits

Author SHA1 Message Date
a77e689b38 Update plugin.ts 2023-06-22 21:32:28 +02:00
René Preuß
3ce7d64d50 Update CHANGELOG.md 2023-04-08 18:37:50 +02:00
2 changed files with 13 additions and 3 deletions

View File

@@ -3,18 +3,28 @@
## v2.0.1
Typo fixes in the GitHub/NPM repo
## v2.0.0
## v1.0.6
Support for Authorization Code Grant with PKCE
## v1.0.5
## v1.0.5 - v1.0.6
Fix for CookieRef when using watch(...)
## v1.0.4
Minor fixes
## v1.0.3
Minor fixes
## v1.0.2
Minor fixes
## v1.0.0
Initial Release

View File

@@ -74,7 +74,7 @@ export default defineNuxtPlugin(() => {
addRouteMiddleware('auth', async (to) => {
const {user, authConfig, setBearerToken, setRefreshToken} = await useAuth()
if (to.path === authConfig.redirect.callback) {
if (to.path === authConfig.redirect.callback || to.path === authConfig.redirect.callback + '/') {
const queryParams = new URLSearchParams(to.query.toString());
if (queryParams.has('error')) {
return navigateTo(authConfig.redirect.login)