mirror of
https://github.com/bitinflow/nuxt-oauth.git
synced 2026-03-13 21:56:00 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eff160b3c5 | ||
|
|
464e72535b | ||
| a77e689b38 | |||
|
|
3ce7d64d50 |
16
CHANGELOG.md
16
CHANGELOG.md
@@ -1,20 +1,32 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## v2.0.2
|
||||
|
||||
## 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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@bitinflow/nuxt-oauth",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"description": "Nuxt 3 OAuth Module",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user