@auth/sveltekit
Advanced tools
Comparing version 0.3.11 to 0.3.12
@@ -14,3 +14,3 @@ /** | ||
* | ||
* ```bash npm2yarn2pnpm | ||
* ```bash npm2yarn | ||
* npm install @auth/core @auth/sveltekit | ||
@@ -17,0 +17,0 @@ * ``` |
@@ -14,3 +14,3 @@ /** | ||
* | ||
* ```bash npm2yarn2pnpm | ||
* ```bash npm2yarn | ||
* npm install @auth/core @auth/sveltekit | ||
@@ -17,0 +17,0 @@ * ``` |
{ | ||
"name": "@auth/sveltekit", | ||
"version": "0.3.11", | ||
"version": "0.3.12", | ||
"description": "Authentication for SvelteKit.", | ||
@@ -33,3 +33,2 @@ "keywords": [ | ||
"tslib": "^2.4.1", | ||
"typescript": "5.2.2", | ||
"vite": "^4.0.5", | ||
@@ -39,3 +38,3 @@ "vitest": "^0.25.3" | ||
"dependencies": { | ||
"@auth/core": "0.18.0" | ||
"@auth/core": "0.18.1" | ||
}, | ||
@@ -42,0 +41,0 @@ "peerDependencies": { |
@@ -14,3 +14,3 @@ /** | ||
* | ||
* ```bash npm2yarn2pnpm | ||
* ```bash npm2yarn | ||
* npm install @auth/core @auth/sveltekit | ||
@@ -30,5 +30,5 @@ * ``` | ||
* ``` | ||
* | ||
* | ||
* or to use sveltekit platform environment variables for platforms like Cloudflare | ||
* | ||
* | ||
* ```ts title="src/hooks.server.ts" | ||
@@ -258,5 +258,9 @@ * import { SvelteKitAuth } from "@auth/sveltekit" | ||
type DynamicSvelteKitAuthConfig = (event: RequestEvent) => PromiseLike<SvelteKitAuthConfig> | ||
type DynamicSvelteKitAuthConfig = ( | ||
event: RequestEvent | ||
) => PromiseLike<SvelteKitAuthConfig> | ||
function AuthHandle(svelteKitAuthOptions: SvelteKitAuthConfig | DynamicSvelteKitAuthConfig): Handle { | ||
function AuthHandle( | ||
svelteKitAuthOptions: SvelteKitAuthConfig | DynamicSvelteKitAuthConfig | ||
): Handle { | ||
return async function ({ event, resolve }) { | ||
@@ -288,3 +292,5 @@ const authOptions = | ||
*/ | ||
export function SvelteKitAuth(options: SvelteKitAuthConfig | DynamicSvelteKitAuthConfig): Handle { | ||
export function SvelteKitAuth( | ||
options: SvelteKitAuthConfig | DynamicSvelteKitAuthConfig | ||
): Handle { | ||
if (typeof options === "object") { | ||
@@ -291,0 +297,0 @@ options.secret ??= env.AUTH_SECRET |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
1016
44869
+ Added@auth/core@0.18.1(transitive)
+ Addedjose@5.9.6(transitive)
- Removed@auth/core@0.18.0(transitive)
- Removedjose@4.15.9(transitive)
Updated@auth/core@0.18.1