@auth/sveltekit
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -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 {}; |
{ | ||
"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 |
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
44900
10
1010
+ Added@auth/core@0.16.0(transitive)
- Removed@auth/core@0.13.0(transitive)
Updated@auth/core@0.16.0