Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@auth/sveltekit

Package Overview
Dependencies
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auth/sveltekit - npm Package Compare versions

Comparing version 0.3.11 to 0.3.12

2

index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc