https://github.com/aidan-neel/sveltekit-auth
SvelteKit template using my library PrismaAuth.js to handle registration. Uses Prisma, and SQLite3(changeable) for data storing. Comes with login, registration, and a sign-out page built with Shadcn-svelte.
https://github.com/aidan-neel/sveltekit-auth
authentication authorization prisma sql sqlite3 sveltekit template
Last synced: 10 months ago
JSON representation
SvelteKit template using my library PrismaAuth.js to handle registration. Uses Prisma, and SQLite3(changeable) for data storing. Comes with login, registration, and a sign-out page built with Shadcn-svelte.
- Host: GitHub
- URL: https://github.com/aidan-neel/sveltekit-auth
- Owner: aidan-neel
- License: mit
- Created: 2023-11-28T01:53:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-11T00:48:44.000Z (over 2 years ago)
- Last Synced: 2025-04-16T04:09:05.068Z (about 1 year ago)
- Topics: authentication, authorization, prisma, sql, sqlite3, sveltekit, template
- Language: Svelte
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SvelteKit Authentication Template
Built with [Prisma](https://github.com/prisma/prisma), [PrismaAuth.js](https://github.com/aidan-neel/PrismaAuth.js), [SvelteKit](https://github.com/sveltejs/kit), [shadcn-svelte](https://github.com/huntabyte/shadcn-svelte), and more.
## Configuration
**1.** Set the random JWT token key in the .env file in the root directory like so:
```javascript
DATABASE_URL="file:./dev.db"
JWT_SECRET="RANDOMLY_GENERATED_STRING"
```
**3.** Inside the *src/lib/isDev.ts* file change the url to the appropriate domain like so:
```javascript
export let url = isDev ? 'http://localhost:5173' : 'https://url.com'; // Change this to your own url
```
## Notes
**1.** The database is interchangeable. You can use SQLite3, MySQL, PostgreSQL with Vercel, etc. As long as Prisma supports it, the template supports it.