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

feat: configurable dynamodb keys #380

Merged

Conversation

adamdottv
Copy link
Contributor

@adamdottv adamdottv commented Jan 31, 2022

Reasoning 💡

The DynamoDB adapter requires a specific table schema. In an app leveraging a single-table design this means that NextAuth is dictating the schema for your table. This change allows for a more flexible table schema by providing overrides for each of the following: partition key, sort key, index name, index partition key, and index sort key.

Checklist 🧢

Affected issues 🎟

None

@github-actions github-actions bot added dynamodb @next-auth/dynamodb-adapter related tests Changes to testing labels Jan 31, 2022
adamdottv added a commit to adamdottv/docs that referenced this pull request Jan 31, 2022
This PR supplements nextauthjs/adapters#380 and should only be merged after that PR is merged in `nextauthjs/adapters`.
Copy link
Member

@balazsorban44 balazsorban44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, seems like a great addition!

@balazsorban44 balazsorban44 merged commit c9555aa into nextauthjs:main Feb 2, 2022
balazsorban44 pushed a commit to nextauthjs/docs that referenced this pull request Feb 2, 2022
This PR supplements nextauthjs/adapters#380 and should only be merged after that PR is merged in `nextauthjs/adapters`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dynamodb @next-auth/dynamodb-adapter related tests Changes to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants