jayan110105
DTDrizzle Team
•Created by jayan110105 on 2/24/2025 in #help
Why isn't the Drizzle Adapter updating my Google OAuth refresh token in Auth.js?
I'm using Auth.js with the Drizzle Adapter, and since my app is still in testing mode, my Google OAuth refresh token expired after 7 days.
I have prompt: "consent" and access_type: "offline" set, so I should be receiving a new refresh token, but it doesn’t seem to update in the database.
Has anyone encountered this issue before? How can I ensure the refresh token gets properly updated? Any help would be greatly appreciated! 🙌
1 replies
DTDrizzle Team
•Created by jayan110105 on 2/13/2025 in #help
TypeScript Error
I'm running into a TypeScript issue with Drizzle ORM & SingleStore integration.
Issue:
I'm trying to define a table using singlestoreTable from "drizzle-orm/singlestore-core", but TypeScript is throwing types-related errors. Here's my schema:
import { int, text, singlestoreTable, index } from "drizzle-orm/singlestore-core";
export const files = singlestoreTable(
"files_table",
{
id: int("id").primaryKey().autoincrement(),
name: text("name"),
size: int("size"),
url: text("url"),
parent: int("parent"),
},
(t) => {
return [index("parent_index").on(t.parent)];
}
);
Errors:
TypeScript throws "Unsafe assignment of an error typed value"
1 replies