nuxt-auther 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -3
- package/dist/utils/provider.mjs +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { existsSync } from 'fs';
|
|
|
7
7
|
import { hash } from 'ohash';
|
|
8
8
|
|
|
9
9
|
const name = "nuxt-auther";
|
|
10
|
-
const version = "1.2.
|
|
10
|
+
const version = "1.2.2";
|
|
11
11
|
|
|
12
12
|
const OAUTH2DEFAULTS = {
|
|
13
13
|
accessType: void 0,
|
|
@@ -246,7 +246,7 @@ import { serialize } from 'cookie-es'
|
|
|
246
246
|
|
|
247
247
|
const options = ${serialize(opt, { space: 4 })}
|
|
248
248
|
|
|
249
|
-
function addTokenPrefix(token
|
|
249
|
+
function addTokenPrefix(token, tokenType) {
|
|
250
250
|
if (!token || !tokenType || typeof token !== 'string' || token.startsWith(tokenType)) {
|
|
251
251
|
return token;
|
|
252
252
|
}
|
|
@@ -357,7 +357,7 @@ import { serialize } from 'cookie-es'
|
|
|
357
357
|
|
|
358
358
|
const options = ${serialize(opt, { space: 4 })}
|
|
359
359
|
|
|
360
|
-
function addTokenPrefix(token
|
|
360
|
+
function addTokenPrefix(token, tokenType) {
|
|
361
361
|
if (!token || !tokenType || typeof token !== 'string' || token.startsWith(tokenType)) {
|
|
362
362
|
return token;
|
|
363
363
|
}
|
package/dist/utils/provider.mjs
CHANGED
|
@@ -106,7 +106,7 @@ import { serialize } from 'cookie-es'
|
|
|
106
106
|
|
|
107
107
|
const options = ${serialize(opt, { space: 4 })}
|
|
108
108
|
|
|
109
|
-
function addTokenPrefix(token
|
|
109
|
+
function addTokenPrefix(token, tokenType) {
|
|
110
110
|
if (!token || !tokenType || typeof token !== 'string' || token.startsWith(tokenType)) {
|
|
111
111
|
return token;
|
|
112
112
|
}
|
|
@@ -217,7 +217,7 @@ import { serialize } from 'cookie-es'
|
|
|
217
217
|
|
|
218
218
|
const options = ${serialize(opt, { space: 4 })}
|
|
219
219
|
|
|
220
|
-
function addTokenPrefix(token
|
|
220
|
+
function addTokenPrefix(token, tokenType) {
|
|
221
221
|
if (!token || !tokenType || typeof token !== 'string' || token.startsWith(tokenType)) {
|
|
222
222
|
return token;
|
|
223
223
|
}
|