@nekm/svelte-core 1.7.11 → 1.7.12
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/protect/helper.d.ts +1 -1
- package/dist/protect/protect.js +1 -1
- package/dist/protect/routes/login.d.ts +1 -1
- package/dist/protect/routes/logout.d.ts +1 -1
- package/dist/protect/routes/redirect-login.d.ts +1 -1
- package/dist/protect/routes/redirect-logout.d.ts +1 -1
- package/dist/protect/routes/routes.d.ts +1 -1
- package/dist/protect/routes/routes.js +4 -4
- package/package.json +1 -1
package/dist/protect/helper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProtectConfig } from "./contracts.
|
|
1
|
+
import type { ProtectConfig } from "./contracts.js";
|
|
2
2
|
export declare function getRedirectUri(origin: string, path: string): string;
|
|
3
3
|
export declare function jwtVerifyIdToken(config: ProtectConfig, jwks: unknown, idToken: string): Promise<import("jose").JWTPayload>;
|
|
4
4
|
export declare function jwtVerifyAccessToken(config: ProtectConfig, jwks: unknown, accessToken: string): Promise<import("jose").JWTPayload>;
|
package/dist/protect/protect.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { error, redirect } from "@sveltejs/kit";
|
|
2
2
|
import { ROUTE_PATH_LOGIN } from "./routes/login.js";
|
|
3
3
|
import { ROUTE_PATH_LOGOUT } from "./routes/logout.js";
|
|
4
|
-
import { routeCreate } from "./routes/routes.
|
|
4
|
+
import { routeCreate } from "./routes/routes.js";
|
|
5
5
|
export const PROTECT_LOGIN = "/" + ROUTE_PATH_LOGIN;
|
|
6
6
|
export const PROTECT_LOGOUT = "/" + ROUTE_PATH_LOGOUT;
|
|
7
7
|
export function protect(config) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { routeLoginFactory } from "./login.
|
|
2
|
-
import { routeLogoutFactory } from "./logout.
|
|
3
|
-
import { routeRedirectLogoutFactory } from "./redirect-logout.
|
|
4
|
-
import { routeRedirectLoginFactory } from "./redirect-login.
|
|
1
|
+
import { routeLoginFactory } from "./login.js";
|
|
2
|
+
import { routeLogoutFactory } from "./logout.js";
|
|
3
|
+
import { routeRedirectLogoutFactory } from "./redirect-logout.js";
|
|
4
|
+
import { routeRedirectLoginFactory } from "./redirect-login.js";
|
|
5
5
|
const routeFactories = Object.freeze([
|
|
6
6
|
routeLoginFactory,
|
|
7
7
|
routeLogoutFactory,
|
package/package.json
CHANGED