@~lyre/auth 0.11.0 → 0.11.1
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.
|
@@ -94,7 +94,7 @@ async function handleAccountsCallback(input) {
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
async function exchangeAuthorizationCode(input) {
|
|
97
|
-
if (input.config.useMock
|
|
97
|
+
if (input.config.useMock) {
|
|
98
98
|
return createMockTokenResponse(input.code);
|
|
99
99
|
}
|
|
100
100
|
const fetchImpl = input.fetchImpl ?? fetch;
|
package/dist/index.js
CHANGED
package/dist/nest.js
CHANGED
package/dist/sveltekit.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@~lyre/auth",
|
|
3
|
-
"version": "0.11.
|
|
4
|
-
"description": "Shared Axis Accounts auth SDK
|
|
3
|
+
"version": "0.11.1",
|
|
4
|
+
"description": "Shared Axis Accounts auth SDK — framework-agnostic session/identity core (HMAC-signed cookies, accounts login/callback/logout) plus an optional turnkey SvelteKit adapter.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"license": "MIT",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
],
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsup src/index.ts src/sveltekit.ts src/nest.ts src/admin.ts --format esm --dts --clean",
|
|
54
|
-
"check": "tsc --noEmit"
|
|
54
|
+
"check": "tsc --noEmit",
|
|
55
|
+
"test": "vitest run"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
58
|
"@sveltejs/kit": "^2.0.0"
|
|
@@ -65,7 +66,8 @@
|
|
|
65
66
|
"@sveltejs/kit": "^2.0.0",
|
|
66
67
|
"@types/node": "^22",
|
|
67
68
|
"tsup": "^8.3.5",
|
|
68
|
-
"typescript": "^6.0.2"
|
|
69
|
+
"typescript": "^6.0.2",
|
|
70
|
+
"vitest": "^4.1.12"
|
|
69
71
|
},
|
|
70
72
|
"publishConfig": {
|
|
71
73
|
"access": "public"
|