CCConvex Community
Created by JW on 2/6/2025 in #support-community
Issue with Google Login in Production
Hi everyone, I’m experiencing an issue with Google login in my production environment. Tech Stack: - Next.js: 15.1 - Convex: 1.17.4 - @auth/core: 0.36.0 (downgraded from 0.37.0, but the issue persists) - @convex-dev/auth: 0.0.78 Issue: - Using Password, GitHub, and Google providers. - All work fine in local dev, but in production, only Google login fails. - Google users aren’t registered in Convex DB. Relevant Code: convex/auth.ts
import { convexAuth } from "@convex-dev/auth/server";
import { DataModel } from "./_generated/dataModel";
import { Password } from "@convex-dev/auth/providers/Password";
import GitHub from "@auth/core/providers/github";
import Google from "@auth/core/providers/google";

const CustomPassword = Password<DataModel>({
profile(params) {
return {
email: params.email as string,
name: params.name as string,
};
},
});

export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
providers: [CustomPassword, GitHub, Google],
});
import { convexAuth } from "@convex-dev/auth/server";
import { DataModel } from "./_generated/dataModel";
import { Password } from "@convex-dev/auth/providers/Password";
import GitHub from "@auth/core/providers/github";
import Google from "@auth/core/providers/google";

const CustomPassword = Password<DataModel>({
profile(params) {
return {
email: params.email as string,
name: params.name as string,
};
},
});

export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
providers: [CustomPassword, GitHub, Google],
});
middleware.ts
import {
convexAuthNextjsMiddleware,
createRouteMatcher,
nextjsMiddlewareRedirect,
} from "@convex-dev/auth/nextjs/server";

const isPublicPage = createRouteMatcher(["/auth"]);

export default convexAuthNextjsMiddleware(async (request, { convexAuth }) => {
if (!isPublicPage(request) && !(await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/auth");
}
if (isPublicPage(request) && (await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/");
}
});

export const config = {
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
};
import {
convexAuthNextjsMiddleware,
createRouteMatcher,
nextjsMiddlewareRedirect,
} from "@convex-dev/auth/nextjs/server";

const isPublicPage = createRouteMatcher(["/auth"]);

export default convexAuthNextjsMiddleware(async (request, { convexAuth }) => {
if (!isPublicPage(request) && !(await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/auth");
}
if (isPublicPage(request) && (await convexAuth.isAuthenticated())) {
return nextjsMiddlewareRedirect(request, "/");
}
});

export const config = {
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
};
Troubleshooting: - Downgraded @auth/core 0.37.0 to 0.36.0 – no effect. - Verified OAuth credentials & callback URLs – all correct. Anyone faced a similar issue? Could this be due to env variables, CORS, or OAuth config? Thanks in advance! 🚀
2 replies
NNormal
Created by Mechabit on 2/6/2025 in #💭feature-request
more pricing tiers
would be nice to have a higher and a lower tier than current pro tier. maybe a pro plus that has some if the features of private also a tier between free and pro like 50 bucks for 12 months and 100 CCU
1 replies
VVALORANT
Created by pokemasterpkm on 2/6/2025 in #community-help
my valorant doesnt start
i have downloaded valorant but after pressing play it looks like it is loading but nothing opens up please help my pc can run almost all games smoothly
2 replies
VVALORANT
Created by Deahu-_-❄ on 2/6/2025 in #community-help
van 9003
Uefi issue
2 replies
VVALORANT
Created by shwyck on 2/6/2025 in #fanart
Sova and Sova
No description
1 replies
Mmfad
Created by Walmart the Conqueror on 2/6/2025 in #questions-and-advice
Recent WAYWT Feedbck
No description
10 replies
CCConvex Community
Created by alfieqashwa on 2/6/2025 in #show-and-tell
Qozy Cue -- Billiard & Cafe Real Time Online Application
Hi, I think I've successfully rewrite my app https://qozycue.com from T3-stack https://t3.qozycue.com It's from Prisma (PostgreSQL) & tRPC to Convex BaaS. It's still production testing. I'm so lonely here. Hopefully can make friends in this community and learn together.
1 replies
VVALORANT
Created by belven on 2/6/2025 in #community-help
regarding hwid ban
i was banned on october 9th 2024, roughly 630 pm, it's february 6th 2025 today, i should be able to play at 630 pm today right? since it's been 120 days
2 replies
VVALORANT
Created by Bocchy on 2/6/2025 in #community-help
Van -1 Van 1067 Van 87
Can turn on memory integrity but valorsnt doesnt allow it deleted atikmpag.sys I did everything. Vgc reinstall valorant etc etc reinstall graphic drivers as well! Etc
4 replies
MGMobile Games
Created by Anvo on 2/6/2025 in #🎬media
Voldemort gameplay
1 replies
Mmfad
Created by disc o'van on 2/6/2025 in #questions-and-advice
About to buy some cap toe boots. Need help with the color.
https://www.allenedmonds.com/product/mens-park-avenue-cap-toe-oxford-dress-boot-3029239/burgundy-leather-ec4500810 I absolutely love this boot ... I tried it on in-store and it's a perfect fit should I go for brown ("dark chili") or burgundy (which is much cheaper)? I love both colors, so my main question is whether the added versatility of brown is worth the extra cost
3 replies
VVALORANT
Created by Severed-Halo on 2/6/2025 in #community-help
Valorant updates getting stuck at 1 KB/s.
Every 20 seconds or so it does jump up to around 50 MB/s but only for a second or two then it goes back down. In task manager it says that the riot client just isn't using any of the network (not that I'm sure that means anything.) But it makes even a little patch take an unbearably long time.
2 replies
VVALORANT
Created by Joshy on 2/6/2025 in #community-help
VAN9005 error
No description
14 replies
UBUniversal Blue
Created by Dre on 2/6/2025 in #🛟bazzite-help
Unable to write to smb share
My file server has smb enabled. Bazzite picks it up right away and I'm able to read from it but if I try to write to it I get a permisison error. I don't see any options for specifying my username and password that has write permission for share. How can I enable write on the smb share in Bazzite?
7 replies
Mmfad
Created by a on 2/6/2025 in #questions-and-advice
How much should a camel hair coat cost?
^
3 replies
VVALORANT
Created by azeaez on 2/6/2025 in #community-help
help me
I didn't do anything, but I got a permanent suspension for violating Article 7 of the Code of Conduct, what should I do
5 replies
PMPUBG MOBILE
Created by FΛƧIΉ on 2/6/2025 in #questions
Paypal in freelancer portal
I wanted to ask that in my country paypal isn't available but i have paypal of UK region my relatives are there so made an account and all the details and bank are attached and i have access of that paypal account and i am in pakistan rn so if i change my region in my freelancer portal and do attach paypal account so will there be any issue?
1 replies
AAdmincraft
Created by ParrotQuack on 2/6/2025 in #questions
Grainy Blocks In Distance
No description
3 replies