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

@edgedb/auth-sveltekit

Package Overview
Dependencies
Maintainers
3
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edgedb/auth-sveltekit - npm Package Compare versions

Comparing version 0.2.0-canary.20240408T142946 to 0.2.0-canary.20240408T143042

2

dist/server.d.ts

@@ -67,2 +67,4 @@ import { type RequestEvent, type Handle } from "@sveltejs/kit";

verification_token: string;
} | {
email: string;
} | FormData): Promise<void>;

@@ -69,0 +71,0 @@ emailPasswordSignIn(data: {

@@ -67,4 +67,26 @@ import { redirect, } from "@sveltejs/kit";

async emailPasswordResendVerificationEmail(data) {
const [verificationToken] = extractParams(data, ["verification_token"], "verification_token missing");
await (await this.core).resendVerificationEmail(verificationToken);
const verificationToken = data instanceof FormData
? data.get("verification_token")
: "verification_token" in data
? data.verification_token
: null;
const email = data instanceof FormData
? data.get("email")
: "email" in data
? data.email
: null;
if (verificationToken) {
return await (await this.core).resendVerificationEmail(verificationToken.toString());
}
else if (email) {
const { verifier } = await (await this.core).resendVerificationEmailForEmail(email.toString(), `${this.config.authRoute}/emailpassword/verify`);
this.cookies.set(this.config.pkceVerifierCookieName, verifier, {
httpOnly: true,
sameSite: "strict",
path: "/",
});
}
else {
throw new InvalidDataError("expected 'verification_token' or 'email' in data");
}
}

@@ -71,0 +93,0 @@ async emailPasswordSignIn(data) {

2

package.json
{
"name": "@edgedb/auth-sveltekit",
"description": "Helper library to integrate the EdgeDB Auth extension with Sveltekit.",
"version": "0.2.0-canary.20240408T142946",
"version": "0.2.0-canary.20240408T143042",
"author": "EdgeDB <info@edgedb.com>",

@@ -6,0 +6,0 @@ "type": "module",

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