Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Store OAuth code and token scopes as TEXT

Kiran K95fa99a7061d
diff --git a/apps/web/prisma/schema/oauth.prisma b/apps/web/prisma/schema/oauth.prisma
index 1aaec7414c..b7bfbf6267 100644
--- a/apps/web/prisma/schema/oauth.prisma
+++ b/apps/web/prisma/schema/oauth.prisma
@@ -17,7 +17,7 @@ model OAuthCode {
userId String // User who granted access
projectId String // Workspace that user granted access to
code String @unique
- scopes String?
+ scopes String? @db.Text
redirectUri String
codeChallenge String?
codeChallengeMethod String?
diff --git a/apps/web/prisma/schema/token.prisma b/apps/web/prisma/schema/token.prisma
index 5f19c2d8a6..8d6c6eaa5a 100644
--- a/apps/web/prisma/schema/token.prisma
+++ b/apps/web/prisma/schema/token.prisma
@@ -18,7 +18,7 @@ model RestrictedToken {
name String
hashedKey String @unique
partialKey String
- scopes String? // space separated (Eg: "links.write domains.read")
+ scopes String? @db.Text // space separated (Eg: "links.write domains.read")
expires DateTime?
lastUsed DateTime?
createdAt DateTime @default(now())