RDSDataAPI adapter is not working - error: [BetterAuthError: Failed to initialize database adapter]
I am trying to hook my better auth against an AWS RDS database using the RDS Data API, which is a supported dialect by Kysely. However, after manually running database migration and verifying database itself is connectable, I run into this error that is not very informative: [BettertAuthError: Failed to initialize database adapter]. I looked at my set-up and felt like I followed the right instructions. Here is my set-up below
import { Kysely } from 'kysely'; import { DataApiDialect } from 'kysely-data-api'; import { RDSData } from '@aws-sdk/client-rds-data';