@edgedb/auth-sveltekit
Advanced tools
Comparing version 0.3.0-canary.20240731T133141 to 0.3.0-canary.20240731T160509
@@ -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>; | ||
} |
@@ -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": { |
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
35421
7
674
Updated@edgedb/auth-core@^0.2.1