Adding arctic for future OAuth.

This commit is contained in:
Bradley Shellnut 2024-07-19 11:38:20 -07:00
parent aedeb7830b
commit 388f9a399d
6 changed files with 25 additions and 26 deletions

View file

@ -40,7 +40,7 @@
"drizzle-kit": "^0.23.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.42.0",
"eslint-plugin-svelte": "^2.43.0",
"just-clone": "^6.2.0",
"just-debounce-it": "^3.2.0",
"postcss": "^8.4.39",
@ -86,6 +86,7 @@
"@sveltejs/adapter-vercel": "^5.4.1",
"@types/feather-icons": "^4.29.4",
"@vercel/og": "^0.5.20",
"arctic": "^1.9.2",
"bits-ui": "^0.21.12",
"boardgamegeekclient": "^1.9.1",
"class-variance-authority": "^0.7.0",

View file

@ -38,6 +38,9 @@ importers:
'@vercel/og':
specifier: ^0.5.20
version: 0.5.20
arctic:
specifier: ^1.9.2
version: 1.9.2
bits-ui:
specifier: ^0.21.12
version: 0.21.12(svelte@5.0.0-next.175)
@ -178,8 +181,8 @@ importers:
specifier: ^9.1.0
version: 9.1.0(eslint@8.57.0)
eslint-plugin-svelte:
specifier: ^2.42.0
version: 2.42.0(eslint@8.57.0)(svelte@5.0.0-next.175)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3))
specifier: ^2.43.0
version: 2.43.0(eslint@8.57.0)(svelte@5.0.0-next.175)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3))
just-clone:
specifier: ^6.2.0
version: 6.2.0
@ -2085,6 +2088,9 @@ packages:
aproba@2.0.0:
resolution: {integrity: sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==}
arctic@1.9.2:
resolution: {integrity: sha512-VTnGpYx+ypboJdNrWnK17WeD7zN/xSCHnpecd5QYsBfVZde/5i+7DJ1wrf/ioSDMiEjagXmyNWAE3V2C9f1hNg==}
are-we-there-yet@2.0.0:
resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}
engines: {node: '>=10'}
@ -2592,12 +2598,12 @@ packages:
peerDependencies:
eslint: '>=7.0.0'
eslint-plugin-svelte@2.42.0:
resolution: {integrity: sha512-mHP6z0DWq97KZvoQcApZHdF9m9epcDV/ICKufeEH18Vh+8vl7S+gwt8WdUohEqKNVMuXRkbvy1suMcVvUDiOGw==}
eslint-plugin-svelte@2.43.0:
resolution: {integrity: sha512-REkxQWvg2pp7QVLxQNa+dJ97xUqRe7Y2JJbSWkHSuszu0VcblZtXkPBPckkivk99y5CdLw4slqfPylL2d/X4jQ==}
engines: {node: ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0-0 || ^9.0.0-0
svelte: ^3.37.0 || ^4.0.0 || ^5.0.0-next.181
svelte: ^3.37.0 || ^4.0.0 || ^5.0.0-next.191
peerDependenciesMeta:
svelte:
optional: true
@ -3920,11 +3926,11 @@ packages:
peerDependencies:
svelte: ^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0
svelte-eslint-parser@0.40.0:
resolution: {integrity: sha512-M+v1HhC5T1WKYVxWexUCS4o6oIBS88XKzOZuhl2ew+eGxol7eC21e+VE8TC4rXJ3iT3iXT0qlZsZcpKjVo5/zQ==}
svelte-eslint-parser@0.41.0:
resolution: {integrity: sha512-L6f4hOL+AbgfBIB52Z310pg1d2QjRqm7wy3kI1W6hhdhX5bvu7+f0R6w4ykp5HoDdzq+vGhIJmsisaiJDGmVfA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
svelte: ^3.37.0 || ^4.0.0 || ^5.0.0-next.181
svelte: ^3.37.0 || ^4.0.0 || ^5.0.0-next.191
peerDependenciesMeta:
svelte:
optional: true
@ -5919,6 +5925,10 @@ snapshots:
aproba@2.0.0: {}
arctic@1.9.2:
dependencies:
oslo: 1.2.0
are-we-there-yet@2.0.0:
dependencies:
delegates: 1.0.0
@ -6389,7 +6399,7 @@ snapshots:
dependencies:
eslint: 8.57.0
eslint-plugin-svelte@2.42.0(eslint@8.57.0)(svelte@5.0.0-next.175)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)):
eslint-plugin-svelte@2.43.0(eslint@8.57.0)(svelte@5.0.0-next.175)(ts-node@10.9.2(@types/node@20.14.11)(typescript@5.5.3)):
dependencies:
'@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0)
'@jridgewell/sourcemap-codec': 1.4.15
@ -6402,7 +6412,7 @@ snapshots:
postcss-safe-parser: 6.0.0(postcss@8.4.39)
postcss-selector-parser: 6.1.0
semver: 7.6.2
svelte-eslint-parser: 0.40.0(svelte@5.0.0-next.175)
svelte-eslint-parser: 0.41.0(svelte@5.0.0-next.175)
optionalDependencies:
svelte: 5.0.0-next.175
transitivePeerDependencies:
@ -7818,7 +7828,7 @@ snapshots:
- stylus
- sugarss
svelte-eslint-parser@0.40.0(svelte@5.0.0-next.175):
svelte-eslint-parser@0.41.0(svelte@5.0.0-next.175):
dependencies:
eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3

View file

@ -16,7 +16,6 @@ const EnvSchema = z.object({
DATABASE_HOST: z.string(),
DATABASE_PORT: z.coerce.number(),
DATABASE_DB: z.string(),
DATABASE_URL: z.string(),
PUBLIC_SITE_NAME: z.string(),
PUBLIC_SITE_URL: z.string(),
PUBLIC_UMAMI_DO_NOT_TRACK: z.string(),

View file

@ -64,6 +64,5 @@ declare module 'lucia' {
firstName: string;
lastName: string;
theme: string;
two_factor_secret: string | null;
}
}

View file

@ -1,12 +1,8 @@
import { crossfade } from 'svelte/transition';
import { quintOut } from 'svelte/easing';
export const [send, receive] = crossfade({
duration: d => Math.sqrt(d * 200),
easing: quintOut,
// You can customize the fallBack if the element sizes are significantly different
fallback(node, params) {
fallback() {
return { duration: 600, easing: x => --x * x * x + 1 }; // Ease-out cubic
}
});

View file

@ -48,7 +48,7 @@
</blockquote>
</div>
</div>
<div class="auth-form">
<div>
{@render children()}
</div>
</div>
@ -113,12 +113,6 @@
}
}
}
.auth-form {
@media (width >= 1024px) {
padding: 2rem;
}
}
}
:global(.auth-buttons) {