Skip to content

Commit 5c35977

Browse files
committed
Use TEXT for oauth_tokens columns to support JWT tokens
Microsoft Entra ID access tokens are JWTs that can exceed 2000 characters, which doesn't fit in VARCHAR(255).
1 parent b526ac2 commit 5c35977

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

create-tables.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ CREATE TABLE oauth_tokens
4141
(
4242
user_id VARCHAR(255) NOT NULL,
4343
provider VARCHAR(255) NOT NULL,
44-
access_token VARCHAR(255) NOT NULL,
45-
refresh_token VARCHAR(255) NOT NULL,
44+
access_token TEXT NOT NULL,
45+
refresh_token TEXT NOT NULL,
4646
last_updated_at timestamptz NOT NULL DEFAULT now(),
47-
47+
4848
PRIMARY KEY (user_id, provider)
4949
);

0 commit comments

Comments
 (0)