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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auther",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "configKey": "auth",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.0.0 <5.0.0"
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.1";
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: string | boolean, tokenType: string | false): string | boolean {
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: string | boolean, tokenType: string | false): string | boolean {
360
+ function addTokenPrefix(token, tokenType) {
361
361
  if (!token || !tokenType || typeof token !== 'string' || token.startsWith(tokenType)) {
362
362
  return token;
363
363
  }
@@ -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: string | boolean, tokenType: string | false): string | boolean {
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: string | boolean, tokenType: string | false): string | boolean {
220
+ function addTokenPrefix(token, tokenType) {
221
221
  if (!token || !tokenType || typeof token !== 'string' || token.startsWith(tokenType)) {
222
222
  return token;
223
223
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auther",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Authentication module for Nuxt.JS",
5
5
  "homepage": "https://github.com/zerosdev/nuxt-auther",
6
6
  "author": "zerosdev",