---
title: "Discussion on \"Google Sign-In in Next.js with NextAuth v4 — PrismaAdapter, JWT Sessions, and Extending session.user.id\" | Hashnode"
description: "Discussion on \"Google Sign-In in Next.js with NextAuth v4 — PrismaAdapter, JWT Sessions, and Extending session.user.id\". How to wire up GoogleProvider with a MariaDB-backed Prisma schema, configure JWT session strategy, inject user.id into the session type, and separate NextAuth user records from app-managed business data."
url: "https://hashnode.com/posts/google-sign-in-in-next-js-with-nextauth-v4-prismaadapter-jwt-sessions-and-extending-session-user-id/69fd25b89f93a850a43890ab"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Google Sign-In in Next.js with NextAuth v4 — PrismaAdapter, JWT Sessions, and Extending session.user.id](https://ultimatetools.hashnode.dev/google-sign-in-in-next-js-with-nextauth-v4-prismaadapter-jwt-sessions-and-extending-session-user-id?utm_source=hashnode&utm_medium=feed)

How to wire up GoogleProvider with a MariaDB-backed Prisma schema, configure JWT session strategy, inject user.id into the session type, and separate NextAuth user records from app-managed business data.

May 7 · 7 min read · ultimatetools.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#prisma](https://hashnode.com/tag/prisma)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Shaishav Patel](https://hashnode.com/@shaishavap)

@shaishavap · Mumbai, India

  
[View profile](https://hashnode.com/@shaishavap)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
