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

@edgedb/auth-sveltekit

Package Overview
Dependencies
Maintainers
0
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.3.0-canary.20240731T133141 to 0.3.0-canary.20240731T160509

2

dist/client.d.ts

@@ -29,4 +29,2 @@ import type { BuiltinOAuthProviderNames } from "@edgedb/auth-core";

readonly webAuthnClient: WebAuthnClient;
/** @internal */
constructor(options: AuthOptions);
getOAuthUrl(providerName: BuiltinOAuthProviderNames): string;

@@ -33,0 +31,0 @@ getBuiltinUIUrl(): string;

@@ -22,3 +22,2 @@ import { WebAuthnClient } from "@edgedb/auth-core/webauthn";

webAuthnClient;
/** @internal */
constructor(options) {

@@ -25,0 +24,0 @@ this.config = getConfig(options);

import { type RequestEvent, type Handle } from "@sveltejs/kit";
import type { Client } from "edgedb";
import { Auth, type BuiltinOAuthProviderNames, type TokenData, type emailPasswordProviderName, type AuthenticationResponseJSON, type RegistrationResponseJSON } from "@edgedb/auth-core";
import { type BuiltinOAuthProviderNames, type TokenData, type emailPasswordProviderName, type AuthenticationResponseJSON, type RegistrationResponseJSON } from "@edgedb/auth-core";
import { ClientAuth, type AuthOptions } from "./client.js";

@@ -57,4 +57,2 @@ export * from "@edgedb/auth-core/errors";

get session(): AuthSession;
/** @internal */
constructor(client: Client, core: Promise<Auth>, { cookies }: RequestEvent, options: AuthOptions);
isPasswordResetTokenValid(resetToken: string): boolean | null;

@@ -120,5 +118,3 @@ getProvidersInfo(): Promise<{

readonly client: Client;
/** @internal */
constructor(client: Client, authToken: string | undefined);
isSignedIn(): Promise<boolean | null>;
}

4

dist/server.js

@@ -29,3 +29,3 @@ import { redirect, } from "@sveltejs/kit";

function setVerifierCookie(cookies, config, value) {
const expires = new Date(Date.now() + 1000 * 60 * 24 * 7); // in 7 days
const expires = new Date(Date.now() + 1000 * 60 * 24 * 7);
cookies.set(config.pkceVerifierCookieName, value, {

@@ -72,3 +72,2 @@ ...BASE_COOKIE_CONFIG,

}
/** @internal */
constructor(client, core, { cookies }, options) {

@@ -184,3 +183,2 @@ super(options);

client;
/** @internal */
constructor(client, authToken) {

@@ -187,0 +185,0 @@ this.authToken = authToken;

{
"name": "@edgedb/auth-sveltekit",
"description": "Helper library to integrate the EdgeDB Auth extension with Sveltekit.",
"version": "0.3.0-canary.20240731T133141",
"version": "0.3.0-canary.20240731T160509",
"author": "EdgeDB <info@edgedb.com>",

@@ -19,8 +19,11 @@ "type": "module",

"typecheck": "tsc --project tsconfig.json --noEmit",
"build": "tsc --project tsconfig.json"
"build": "tsc --project tsconfig.json",
"lint": "eslint --quiet",
"lint:fix": "eslint --fix"
},
"devDependencies": {
"@repo/tsconfig": "*",
"@sveltejs/kit": "^2.5.10",
"@types/node": "^20.12.13",
"edgedb": "^1.5.0",
"edgedb": "*",
"svelte": "^4.2.17",

@@ -34,3 +37,3 @@ "typescript": "^5.5.2",

"dependencies": {
"@edgedb/auth-core": "^0.2.0"
"@edgedb/auth-core": "^0.2.1"
},

@@ -37,0 +40,0 @@ "exports": {

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