Composite primary key, multiple primary keys
I am following the
Lucia-auth
docs for multiple oauth providers, it's says: PRIMARY KEY (provider_id, provider_user_id)
as shown here:
https://lucia-auth.com/guides/oauth/multiple-providers
I am using Postgres with TypeScript so I made it like this, instead of the SQLite example they use.
Its returning in the terminal: multiple primary keys for table "oath_account" are not allowed
.. But in the docs it shows I need it, right, what am I doing wrong?
Thanks in advance.Lucia
Multiple OAuth providers
Lucia is an open source auth library that abstracts away the complexity of handling sessions.
3 Replies
I'm getting the same error using neondb. Also following the same lucia auth docs đ
check if you're importing "pimaryKey" from the right db adapter,
I am. Often my migration or
push:pg
will fail. The raw SQL from the migration file seemed to mostly work though. I'll try to file a proper issue if I can reproduce it reliably.