@drmhse/authos-vue 0.2.7 → 0.8.0

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/nuxt.d.mts CHANGED
@@ -1,34 +1,34 @@
1
- import * as nuxt_app from 'nuxt/app';
2
-
1
+ //#region src/nuxt/module.d.ts
3
2
  interface AuthOSModuleOptions {
4
- baseUrl: string;
5
- /**
6
- * Cookie name for storing the access token
7
- * @default 'authos_token'
8
- */
9
- tokenCookie?: string;
10
- /**
11
- * Cookie domain (optional)
12
- * Use this for subdomain-wide auth
13
- */
14
- domain?: string;
15
- /**
16
- * Cookie path
17
- * @default '/'
18
- */
19
- path?: string;
20
- /**
21
- * SameSite cookie attribute
22
- * @default 'lax'
23
- */
24
- sameSite?: 'strict' | 'lax' | 'none';
3
+ baseUrl: string;
4
+ /**
5
+ * Cookie name for storing the access token
6
+ * @default 'authos_token'
7
+ */
8
+ tokenCookie?: string;
9
+ /**
10
+ * Cookie domain (optional)
11
+ * Use this for subdomain-wide auth
12
+ */
13
+ domain?: string;
14
+ /**
15
+ * Cookie path
16
+ * @default '/'
17
+ */
18
+ path?: string;
19
+ /**
20
+ * SameSite cookie attribute
21
+ * @default 'lax'
22
+ */
23
+ sameSite?: 'strict' | 'lax' | 'none';
25
24
  }
26
25
  declare const _default: NuxtModule<TOptions, TOptions, false>;
27
-
26
+ //#endregion
27
+ //#region src/nuxt/middleware.d.ts
28
28
  interface AuthMiddlewareOptions {
29
- redirectTo?: string;
29
+ redirectTo?: string;
30
30
  }
31
- declare function createAuthMiddleware(options?: AuthMiddlewareOptions): nuxt_app.RouteMiddleware;
32
- declare const authMiddleware: nuxt_app.RouteMiddleware;
33
-
34
- export { type AuthMiddlewareOptions, type AuthOSModuleOptions, authMiddleware, _default as authOSModule, createAuthMiddleware };
31
+ declare function createAuthMiddleware(options?: AuthMiddlewareOptions): any;
32
+ declare const authMiddleware: any;
33
+ //#endregion
34
+ export { type AuthMiddlewareOptions, type AuthOSModuleOptions, authMiddleware, _default as authOSModule, createAuthMiddleware };
package/dist/nuxt.d.ts CHANGED
@@ -1,34 +1,34 @@
1
- import * as nuxt_app from 'nuxt/app';
2
-
1
+ //#region src/nuxt/module.d.ts
3
2
  interface AuthOSModuleOptions {
4
- baseUrl: string;
5
- /**
6
- * Cookie name for storing the access token
7
- * @default 'authos_token'
8
- */
9
- tokenCookie?: string;
10
- /**
11
- * Cookie domain (optional)
12
- * Use this for subdomain-wide auth
13
- */
14
- domain?: string;
15
- /**
16
- * Cookie path
17
- * @default '/'
18
- */
19
- path?: string;
20
- /**
21
- * SameSite cookie attribute
22
- * @default 'lax'
23
- */
24
- sameSite?: 'strict' | 'lax' | 'none';
3
+ baseUrl: string;
4
+ /**
5
+ * Cookie name for storing the access token
6
+ * @default 'authos_token'
7
+ */
8
+ tokenCookie?: string;
9
+ /**
10
+ * Cookie domain (optional)
11
+ * Use this for subdomain-wide auth
12
+ */
13
+ domain?: string;
14
+ /**
15
+ * Cookie path
16
+ * @default '/'
17
+ */
18
+ path?: string;
19
+ /**
20
+ * SameSite cookie attribute
21
+ * @default 'lax'
22
+ */
23
+ sameSite?: 'strict' | 'lax' | 'none';
25
24
  }
26
25
  declare const _default: NuxtModule<TOptions, TOptions, false>;
27
-
26
+ //#endregion
27
+ //#region src/nuxt/middleware.d.ts
28
28
  interface AuthMiddlewareOptions {
29
- redirectTo?: string;
29
+ redirectTo?: string;
30
30
  }
31
- declare function createAuthMiddleware(options?: AuthMiddlewareOptions): nuxt_app.RouteMiddleware;
32
- declare const authMiddleware: nuxt_app.RouteMiddleware;
33
-
34
- export { type AuthMiddlewareOptions, type AuthOSModuleOptions, authMiddleware, _default as authOSModule, createAuthMiddleware };
31
+ declare function createAuthMiddleware(options?: AuthMiddlewareOptions): any;
32
+ declare const authMiddleware: any;
33
+ //#endregion
34
+ export { type AuthMiddlewareOptions, type AuthOSModuleOptions, authMiddleware, _default as authOSModule, createAuthMiddleware };