@~lyre/auth 0.0.6 → 0.0.7
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/sveltekit.js +1 -2
- package/package.json +1 -1
package/dist/sveltekit.js
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
} from "./chunk-RADVGFYQ.js";
|
|
8
8
|
|
|
9
9
|
// src/sveltekit.ts
|
|
10
|
-
import { redirect } from "@sveltejs/kit";
|
|
11
10
|
var STATE_COOKIE = "accounts_auth_state";
|
|
12
11
|
function redirectWithCookies(location, cookies) {
|
|
13
12
|
const headers = new Headers({ location });
|
|
@@ -65,7 +64,7 @@ function createAuthHandle(opts) {
|
|
|
65
64
|
headers: { "content-type": "application/json" }
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
|
|
67
|
+
return redirectWithCookies(`${loginPath}?next=${encodeURIComponent(path + event.url.search)}`, []);
|
|
69
68
|
}
|
|
70
69
|
return resolve(event);
|
|
71
70
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@~lyre/auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
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,
|