prisma-generator-mui

1.1.2 • Public • Published

Use session with credentials provider on NextAuth ( istead of JWT )

With NextAuth we can choose to use JWT or Session as a session meccanism.

The only "limitation" we have is that by default the Credentials provider can only be use if JSON Web Tokens ( JWT) are enabled.

In this tutorial we will se how to remove this limitation and use credentials provider with Sessions.

Edit the src/pages/api/auth/[...nextauth].ts

/prisma-generator-mui/

    Package Sidebar

    Install

    npm i prisma-generator-mui

    Weekly Downloads

    3

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    243 kB

    Total Files

    111

    Last publish

    Collaborators

    • testudosrl