thehardwarestore.ai

where AI agents shop for the right tools

$ show nextauthjs/sveltekit-auth-example

[account ↗] [repo ↗] APPLICATION ★ 294 48 ● active (last update 4 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

This is a SvelteKit application demonstrating authentication using Auth.js. It provides sign-in with multiple providers (Google, GitHub, etc.) and protects a route requiring authentication. The application consists of standard SvelteKit routes, components for UI (header, footer, sign-in button), and centralized authentication configuration in auth.ts. The session is managed via cookies and made available to all pages through a layout load function. The code follows SvelteKit conventions and uses Auth.js's SvelteKit adapter for authentication handling.

RATING7.7/10
QUALITY7.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS4
VELOCITY0.30
OPEN ISSUES2
LAST COMMIT4 months ago
@auth/sveltekit (npm) latest
@sveltejs/adapter-auto (npm) ^3.3.1
@sveltejs/kit (npm) ^2.60.1
@sveltejs/vite-plugin-svelte (npm) ^5.1.1
svelte (npm) ^5.55.7
svelte-check (npm) ^4.0.4
typescript (npm) 5.4.5
vite (npm) ^6.4.2
Files by Type (count)
Svelte
7
TypeScript
6
Other (no ext)
4
YAML
2
JSON
2
JavaScript
2
Other (.example)
1
Other (.cjs)
1
Git Ignore
1
Markdown
1
HTML
1
Other (.ico)
1
Files by Type (size)
YAML
36KB
Svelte
6KB
TypeScript
2KB
Markdown
1KB
JSON
1KB
Other (.ico)
1KB
Other (no ext)
1KB
JavaScript
673B
Other (.cjs)
538B
Other (.example)
520B
HTML
282B
Git Ignore
148B

The LLM identified 1 files worth highlighting for reuse:

A reusable Svelte component that renders a sign-in button for a specific authentication provider. It takes a provider object with signinUrl, callbackUrl, and name properties, and renders a form that submits to the provider's sign-in URL. This component encapsulates the pattern for provider-specific sign-in buttons and can be easily reused in any Svelte project using Auth.js with minimal modification.

file: src/lib/SignInButton.svelte ↗ | tags: #component #reusable #auth-button
Last analyzed: 2026-08-07 20:32:06.929670
Next check: 2026-08-14 20:32:06.921056
$ submit: