🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(auth): unknown argument refresh_token_expires_in with Github connection (#3356)
Marc Klingen2358264b6644
diff --git a/packages/shared/prisma/generated/types.ts b/packages/shared/prisma/generated/types.tsindex 45d95a2535..a69fd9ad8f 100644--- a/packages/shared/prisma/generated/types.ts+++ b/packages/shared/prisma/generated/types.ts@@ -80,6 +80,7 @@ export type Account = {scope: string | null;id_token: string | null;session_state: string | null;+ refresh_token_expires_in: number | null;};export type ApiKey = {id: string;diff --git a/packages/shared/prisma/migrations/20240913185822_account_add_refresh_token_expires_in/migration.sql b/packages/shared/prisma/migrations/20240913185822_account_add_refresh_token_expires_in/migration.sqlnew file mode 100644index 0000000000..bdc7f4f49c--- /dev/null+++ b/packages/shared/prisma/migrations/20240913185822_account_add_refresh_token_expires_in/migration.sql@@ -0,0 +1,2 @@+-- AlterTable+ALTER TABLE "Account" ADD COLUMN "refresh_token_expires_in" INTEGER;diff --git a/packages/shared/prisma/schema.prisma b/packages/shared/prisma/schema.prismaindex 2b11532f66..0471ebf32b 100644--- a/packages/shared/prisma/schema.prisma+++ b/packages/shared/prisma/schema.prisma@@ -34,21 +34,22 @@ generator kysely {// Necessary for Next authmodel Account {- id String @id @default(cuid())- userId String @map("user_id")- type String- provider String- providerAccountId String- refresh_token String? // @db.Text- access_token String? // @db.Text- expires_at Int?- expires_in Int?- ext_expires_in Int?- token_type String?- scope String?- id_token String? // @db.Text- session_state String?- user User @relation(fields: [userId], references: [id], onDelete: Cascade)+ id String @id @default(cuid())+ userId String @map("user_id")+ type String+ provider String+ providerAccountId String+ refresh_token String? // @db.Text+ access_token String? // @db.Text+ expires_at Int?+ expires_in Int?+ ext_expires_in Int?+ token_type String?+ scope String?+ id_token String? // @db.Text+ session_state String?+ refresh_token_expires_in Int?+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)@@unique([provider, providerAccountId])@@index([userId])