@edgedb/auth-sveltekit
Advanced tools
Comparing version 0.2.0-canary.20240503T172103 to 0.2.0-canary.20240503T173218
@@ -24,2 +24,3 @@ import type { BuiltinOAuthProviderNames } from "@edgedb/auth-core"; | ||
protected readonly config: AuthConfig; | ||
protected readonly isSecure: boolean; | ||
/** @internal */ | ||
@@ -26,0 +27,0 @@ constructor(options: AuthOptions); |
@@ -18,5 +18,7 @@ export function getConfig(options) { | ||
config; | ||
isSecure; | ||
/** @internal */ | ||
constructor(options) { | ||
this.config = getConfig(options); | ||
this.isSecure = this.config.baseUrl.startsWith("https"); | ||
} | ||
@@ -23,0 +25,0 @@ getOAuthUrl(providerName) { |
@@ -51,2 +51,3 @@ import { redirect, } from "@sveltejs/kit"; | ||
expires, | ||
secure: this.isSecure, | ||
}); | ||
@@ -61,2 +62,3 @@ } | ||
expires: expires ?? undefined, | ||
secure: this.isSecure, | ||
}); | ||
@@ -63,0 +65,0 @@ } |
{ | ||
"name": "@edgedb/auth-sveltekit", | ||
"description": "Helper library to integrate the EdgeDB Auth extension with Sveltekit.", | ||
"version": "0.2.0-canary.20240503T172103", | ||
"version": "0.2.0-canary.20240503T173218", | ||
"author": "EdgeDB <info@edgedb.com>", | ||
@@ -6,0 +6,0 @@ "type": "module", |
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
29169
531