Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce @auth/prisma-adapter #7703

Merged
merged 45 commits into from
Jun 1, 2023
Merged

feat: introduce @auth/prisma-adapter #7703

merged 45 commits into from
Jun 1, 2023

Conversation

balazsorban44
Copy link
Member

Database adapters are not dependent on Next.js features, so it makes sense to republish them under the @auth/* scope.

This PR is the first of many, to convert adapters, using @auth/core for types.

To upgrade, in your package.json:

-  "@next-auth/prisma-adapter": "0.0.0",
+  "@auth/prisma-adapter": "0.0.0",  

And run npm install, yarn install or pnpm install respectively.

Note: This packages is now published ESM-only.

vixeven and others added 30 commits April 30, 2023 10:34
* feat: map Account before saving to database

* document `acconut()`, explain default behaviour

* generate `expires_at` based on `expires_in`

Fixes #6538

* rename

* strip undefined on `defaultProfile`

* don't forward defaults to account callback

* improve internal namings, types, docs
* JWT Token -> JWT

* document some errors

* improve errors, docs
Reverts some changes on #7369 so DB migration won't be needed
Co-authored-by: Nico Domino <yo@ndo.dev>
* feat: add update session to core

Integrates #7056 into `@auth/core`

* resolve default user after jwt callback
fix: moves next config file into the correct directory
* bump Nuxt to 3.5.1

* follow playground package names

* chore: update nuxt playground scripts

* fix: imports and types

* fix: more nuxt type imports

* fix: nuxt auth options types

* fix: nuxt client fetch types
Info box is not being rendered; the raw `:::info` is displayed. Blind guess: it needs a blank line before it.
@balazsorban44
Copy link
Member Author

@SocketSecurity ignore @prisma/engines@4.15.0

@balazsorban44 balazsorban44 marked this pull request as ready for review June 1, 2023 13:33
@balazsorban44 balazsorban44 merged commit fa65a95 into main Jun 1, 2023
11 of 12 checks passed
@balazsorban44 balazsorban44 deleted the feat/authjs-prisma branch June 1, 2023 13:42
balazsorban44 added a commit that referenced this pull request Jun 1, 2023
BREAKING CHANGE:
If you are coming from the previous adapter, change your `package.json`:

```diff
-  "@next-auth/prisma-adapter": "0.0.0",
+  "@auth/prisma-adapter": "0.0.0",
```

And run `npm install`, `yarn install` or `pnpm install` respectively.

**Note:** This packages is published as ESM-only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Changes related to the core code concerning database adapters core Refers to `@auth/core` prisma @auth/prisma-adapter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants