Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fixed

daniel31x13d43c4e3e9528
diff --git a/apps/web/pages/api/v1/auth/[...nextauth].ts b/apps/web/pages/api/v1/auth/[...nextauth].ts
index a8572628..50fbb10d 100644
--- a/apps/web/pages/api/v1/auth/[...nextauth].ts
+++ b/apps/web/pages/api/v1/auth/[...nextauth].ts
@@ -1244,14 +1244,7 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
},
callbacks: {
async signIn({ user, account, profile, email, credentials }) {
- if (
- !(user as User).emailVerified &&
- !email?.verificationRequest
- // && (account?.provider === "email" || account?.provider === "google")
- ) {
- // Email is being verified for the first time...
- console.log("Email is being verified for the first time...");
-
+ if (!(user as User).emailVerified && !email?.verificationRequest) {
const parentSubscriptionId = (user as User).parentSubscriptionId;
if (parentSubscriptionId) {
@@ -1358,6 +1351,24 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
},
data: {
emailVerified: new Date(),
+ dashboardSections: {
+ createMany: {
+ data: [
+ {
+ order: 0,
+ type: "STATS",
+ },
+ {
+ order: 1,
+ type: "RECENT_LINKS",
+ },
+ {
+ order: 2,
+ type: "PINNED_LINKS",
+ },
+ ],
+ },
+ },
},
});
}