Michael
Michael
TTCTheo's Typesafe Cult
Created by Michael on 1/17/2025 in #questions
Supabase Postgresql Timeout on Discord Auth Request
Problem solved! The main issue was that I wasn't using the correct Supabase URI! I needed to use the Transaction Pooler address rather than the Direct Connection address.
5 replies
TTCTheo's Typesafe Cult
Created by Michael on 1/17/2025 in #questions
Supabase Postgresql Timeout on Discord Auth Request
Interestingly, in src/server/auth/config.ts at line 52, the db parameter is getting the following error (not sure if it's related) Argument of type 'PostgresJsDatabase<typeof import("/Users/me/code/pov/src/server/db/schema")>' is not assignable to parameter of type 'SqlFlavorOptions'. Type 'PgDatabase<PostgresJsQueryResultHKT, typeof import("/Users/me/code/pov/src/server/db/schema"), ExtractTablesWithRelations<typeof import("/Users/me/code/pov/src/server/db/schema")>>' is not assignable to type 'AnyPostgresDatabase'. The types of '_.session' are incompatible between these types.
5 replies