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.

fix the type

Kiran K3e4e3c42d5f5
diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.ts
index e652359595..314c77e379 100644
--- a/apps/web/lib/auth/options.ts
+++ b/apps/web/lib/auth/options.ts
@@ -273,7 +273,6 @@ export const authOptions: NextAuthOptions = {
return false;
}
- // @ts-ignore
if (user?.lockedAt) {
return false;
}
diff --git a/apps/web/lib/next-auth.d.ts b/apps/web/lib/next-auth.d.ts
new file mode 100644
index 0000000000..afe4cff56a
--- /dev/null
+++ b/apps/web/lib/next-auth.d.ts
@@ -0,0 +1,7 @@
+import "next-auth";
+
+declare module "next-auth" {
+ interface User {
+ lockedAt?: Date;
+ }
+}