Skip to content

Commit 586b618

Browse files
authored
feature: improvements (#4473)
1 parent 494c2c5 commit 586b618

3 files changed

Lines changed: 13 additions & 18 deletions

File tree

sites/plus.skeleton.dev/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "vite build",
88
"check": "svelte-check --tsconfig ./tsconfig.json",
99
"env:start": "docker compose up -d",
10+
"env:status": "docker compose ps",
1011
"env:stop": "docker compose down",
1112
"env:remove": "docker compose down --rmi all --volumes",
1213
"drizzle:push": "drizzle-kit push",

sites/plus.skeleton.dev/src/lib/remote/auth/sign-in.remote.ts

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,17 @@ import { SignInSchema } from '$lib/schemas/auth/sign-in-schema';
66
export const signIn = form(SignInSchema, async (data) => {
77
const event = getRequestEvent();
88

9-
try {
10-
const signIn = await auth.api.signInSocial({
11-
headers: event.request.headers,
12-
body: {
13-
provider: data.providerId,
14-
callbackURL: data.callbackURL,
15-
},
16-
});
9+
const signIn = await auth.api.signInSocial({
10+
headers: event.request.headers,
11+
body: {
12+
provider: data.providerId,
13+
callbackURL: data.callbackURL,
14+
},
15+
});
1716

18-
if (!signIn.redirect || !signIn.url) {
19-
error(500, 'Failed to initiate social sign-in');
20-
}
21-
22-
redirect(303, signIn.url);
23-
} catch (e) {
24-
if (e instanceof Error) {
25-
throw error(400, e.message);
26-
}
27-
throw error(400, 'An unknown error occurred while initiating social sign-in');
17+
if (!signIn.redirect || !signIn.url) {
18+
error(500, 'Failed to initiate social sign-in');
2819
}
20+
21+
redirect(303, signIn.url);
2922
});

sites/plus.skeleton.dev/src/routes/layout.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ html {
1414
background-image:
1515
radial-gradient(at 80% 35%, color-mix(in oklab, var(--color-primary-500) 10%, transparent) 0px, transparent 30%),
1616
radial-gradient(at 85% 6%, color-mix(in oklab, var(--color-success-500) 10%, transparent) 0px, transparent 30%);
17+
scrollbar-gutter: stable;
1718
}
1819

1920
/* Block Containers --- */

0 commit comments

Comments
 (0)