---
title: "Using NextAuth (now Auth.js) with SvelteKit"
url: https://daily.dev/posts/using-nextauth-now-auth-js-with-sveltekit-llfgk7xfu
source_url: https://frontendmasters.com/blog/using-nextauth-now-auth-js-with-sveltekit/
type: article
source: "Frontend Masters"
published: 2024-04-29T15:24:43.678Z
updated: 2024-05-09T08:39:06.345Z
tags: ["webdev", "authentication", "aws-dynamodb", "sveltekit"]
reading_time: 10
upvotes: 8
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using NextAuth (now Auth.js) with SvelteKit

**[Frontend Masters](https://daily.dev/sources/frontendmasters)** · 10 min read · 8 upvotes · 0 comments

## Summary

Learn how to integrate next-auth (now Auth.js) into a SvelteKit app. The post covers the basic configuration, adding Google provider and configuration of sessions to persist in DynamoDB. It also discusses the authentication hooks and extending types.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://frontendmasters.com/blog/using-nextauth-now-auth-js-with-sveltekit/>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#authentication](https://daily.dev/tags/authentication), [#aws-dynamodb](https://daily.dev/tags/aws-dynamodb), [#sveltekit](https://daily.dev/tags/sveltekit)

[View this post on daily.dev](https://daily.dev/posts/using-nextauth-now-auth-js-with-sveltekit-llfgk7xfu)
