Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

refactor(prisma): remove redundant code #76

Merged
merged 3 commits into from
May 5, 2021

Conversation

balazsorban44
Copy link
Member

@balazsorban44 balazsorban44 commented Apr 30, 2021

Removes unnecessary defaults, as they are handled in the core already:

https://github.com/nextauthjs/next-auth/blob/aee376cc572ba601c0fbe6836600e37e937e975b/src/server/index.js#L112-L113

  • Accompanying types should be changed to non-nullable in the core

Also simplifies the hashed token generation, which would ultimately be moved to the core as well. This way, the adapter won't have to take responsibility.

@balazsorban44 balazsorban44 requested a review from kripod May 3, 2021 20:34
@balazsorban44 balazsorban44 changed the title refactor(prisma) remove redundant code refactor(prisma): remove redundant code May 5, 2021
@balazsorban44 balazsorban44 merged commit c5541bb into canary May 5, 2021
@balazsorban44 balazsorban44 deleted the feat/refactor-prisma-adapter branch May 5, 2021 17:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants