DynamoDB Adapter for User Delete needs to reference the dynamic pk
and sk
from returned items
#11383
Labels
adapters
Changes related to the core code concerning database adapters
bug
Something isn't working
invalid reproduction
The issue did not have a detectable valid reproduction URL
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Adapter type
@auth/dynamodb-adapter
Environment
Reproduction URL
https://github.com/nextauthjs/next-auth-example
Describe the issue
When the
userDelete
is doing the clean up of all user related items it is not using the dynamicpk
andsk
values from the optionaloptions
argument.I can do a quick PR if you would like. Just let me know
How to reproduce
The user items will not be cleaned up if the table's
pk
orsk
is named anything other than the defaultsExpected behavior
The text was updated successfully, but these errors were encountered: