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.7 to 0.3.8

21

client.d.ts

@@ -1,3 +0,21 @@

import type { LiteralUnion, SignInOptions, SignInAuthorizationParams, SignOutParams } from "next-auth/react";
import type { BuiltInProviderType, RedirectableProviderType } from "@auth/core/providers";
type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);
interface SignInOptions extends Record<string, unknown> {
/**
* Specify to which URL the user will be redirected after signing in. Defaults to the page URL the sign-in is initiated from.
*
* [Documentation](https://next-auth.js.org/getting-started/client#specifying-a-callbackurl)
*/
callbackUrl?: string;
/** [Documentation](https://next-auth.js.org/getting-started/client#using-the-redirect-false-option) */
redirect?: boolean;
}
interface SignOutParams<R extends boolean = true> {
/** [Documentation](https://next-auth.js.org/getting-started/client#specifying-a-callbackurl-1) */
callbackUrl?: string;
/** [Documentation](https://next-auth.js.org/getting-started/client#using-the-redirect-false-option-1 */
redirect?: R;
}
/** Match `inputType` of `new URLSearchParams(inputType)` */
export type SignInAuthorizationParams = string | string[][] | Record<string, string> | URLSearchParams;
/**

@@ -18,1 +36,2 @@ * Client-side method to initiate a signin flow

export declare function signOut(options?: SignOutParams): Promise<void>;
export {};

7

package.json
{
"name": "@auth/sveltekit",
"version": "0.3.7",
"version": "0.3.8",
"description": "Authentication for SvelteKit.",

@@ -35,7 +35,6 @@ "keywords": [

"vite": "^4.0.5",
"vitest": "^0.25.3",
"next-auth": "4.22.1"
"vitest": "^0.25.3"
},
"dependencies": {
"@auth/core": "0.13.0"
"@auth/core": "0.16.0"
},

@@ -42,0 +41,0 @@ "peerDependencies": {

import type {
LiteralUnion,
SignInOptions,
SignInAuthorizationParams,
SignOutParams,
} from "next-auth/react"
import type {
BuiltInProviderType,
RedirectableProviderType,
} from "@auth/core/providers"
import { base } from "$app/paths";
import { base } from "$app/paths"
type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>)
interface SignInOptions extends Record<string, unknown> {
/**
* Specify to which URL the user will be redirected after signing in. Defaults to the page URL the sign-in is initiated from.
*
* [Documentation](https://next-auth.js.org/getting-started/client#specifying-a-callbackurl)
*/
callbackUrl?: string
/** [Documentation](https://next-auth.js.org/getting-started/client#using-the-redirect-false-option) */
redirect?: boolean
}
interface SignOutParams<R extends boolean = true> {
/** [Documentation](https://next-auth.js.org/getting-started/client#specifying-a-callbackurl-1) */
callbackUrl?: string
/** [Documentation](https://next-auth.js.org/getting-started/client#using-the-redirect-false-option-1 */
redirect?: R
}
/** Match `inputType` of `new URLSearchParams(inputType)` */
export type SignInAuthorizationParams =
| string
| string[][]
| Record<string, string>
| URLSearchParams
/**

@@ -14,0 +35,0 @@ * Client-side method to initiate a signin flow

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