@auth/qwik 0.3.2 → 0.4.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/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.qwik.js +2 -0
- package/package.json +2 -2
- package/src/index.ts +2 -1
package/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AuthConfig } from '@auth/core';
|
|
1
|
+
import { AuthConfig, customFetch } from '@auth/core';
|
|
2
2
|
import { Session } from '@auth/core/types';
|
|
3
3
|
import { z, RequestEventCommon } from '@builder.io/qwik-city';
|
|
4
4
|
import { EnvGetter } from '@builder.io/qwik-city/middleware/request-handler';
|
|
5
5
|
|
|
6
|
+
export { customFetch };
|
|
6
7
|
export { AuthError, CredentialsSignin } from '@auth/core/errors';
|
|
7
8
|
export type { Account, DefaultSession, Profile, Session, User, } from '@auth/core/types';
|
|
8
9
|
/** Configure the {@link QwikAuth$} method. */
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAqC,WAAW,EAAE,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAc,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,EAGL,CAAC,EAED,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAA;AAI5E,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAEhE,YAAY,EACV,OAAO,EACP,cAAc,EACd,OAAO,EACP,OAAO,EACP,IAAI,GACL,MAAM,kBAAkB,CAAA;AAEzB,8CAA8C;AAC9C,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC;CAAG;AAElE,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,CAAC,CAAA;AA4G7E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,aArHE,kBAAkB,KAAK,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAuE7B,kBAAkB;CA8CmB,CAAA;AAmFrE,eAAO,MAAM,cAAc,QAAS,SAAS,UAAU,UAAU,SAwChE,CAAA"}
|
package/index.qwik.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { globalActionQrl, zodQrl, z, routeLoaderQrl } from "@builder.io/qwik-city";
|
|
2
2
|
import { inlinedQrl, useLexicalScope, implicit$FirstArg } from "@builder.io/qwik";
|
|
3
3
|
import { Auth, skipCSRFCheck, isAuthAction } from "@auth/core";
|
|
4
|
+
import { customFetch } from "@auth/core";
|
|
4
5
|
import { isServer } from "@builder.io/qwik/build";
|
|
5
6
|
var setCookie = { exports: {} };
|
|
6
7
|
var defaultParseOptions = {
|
|
@@ -476,5 +477,6 @@ export {
|
|
|
476
477
|
QwikAuthQrl,
|
|
477
478
|
authAction as _auto_authAction,
|
|
478
479
|
defaultRedirectTo as _auto_defaultRedirectTo,
|
|
480
|
+
customFetch,
|
|
479
481
|
setEnvDefaults
|
|
480
482
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auth/qwik",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Authentication for Qwik.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "gioboa <giorgiob.boa@gmail.com>",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"set-cookie-parser": "^2.6.0",
|
|
52
|
-
"@auth/core": "0.
|
|
52
|
+
"@auth/core": "0.36.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@builder.io/qwik": "1.7.3",
|
package/src/index.ts
CHANGED
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
*/
|
|
111
111
|
|
|
112
112
|
import type { AuthConfig } from "@auth/core"
|
|
113
|
-
import { Auth, isAuthAction, skipCSRFCheck } from "@auth/core"
|
|
113
|
+
import { Auth, isAuthAction, skipCSRFCheck, customFetch } from "@auth/core"
|
|
114
114
|
import { AuthAction, Session } from "@auth/core/types"
|
|
115
115
|
import { implicit$FirstArg, type QRL } from "@builder.io/qwik"
|
|
116
116
|
import {
|
|
@@ -124,6 +124,7 @@ import { EnvGetter } from "@builder.io/qwik-city/middleware/request-handler"
|
|
|
124
124
|
import { isServer } from "@builder.io/qwik/build"
|
|
125
125
|
import { parseString, splitCookiesString } from "set-cookie-parser"
|
|
126
126
|
|
|
127
|
+
export { customFetch }
|
|
127
128
|
export { AuthError, CredentialsSignin } from "@auth/core/errors"
|
|
128
129
|
|
|
129
130
|
export type {
|