DynamoDBAdapter: Region is missing #11459
Unanswered
dmeehan1968
asked this question in
Help
Replies: 1 comment
-
I met the same error
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This error is thrown when the
session: { strategy: 'database' } }
is explicitly specified or omitted, and the DynamoDBAdapter is in use.If the region is specified in the client constructor, it then complains about missing credentials.
However, if the
session: { strategy: 'jwt' } }
is used, the adapter works fine as my Nextjs distribution is already authorised (I'm using https://sst.dev/ion to deploy via AWS.The adapter shouldn't be checking whether credentials are provided to the client as the environment might provide appropriate config. It certainly shouldn't be only validating credentials for one part of the flow (the session creation).
Beta Was this translation helpful? Give feedback.
All reactions