Rishad B
Rishad B
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
That's why I went with it. I think I'll do base create convex with Clerk. Looks like I don't need to even use a custom oauth id client and secret with Clerk.
18 replies
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
Probably going to switch to v1 or Clerk. That v1 template has some useful stuff. I'll keep my existing project folder in case you need help debugging.
18 replies
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
I used npm create convex@latest to create the project and chose convex auth when prompted
18 replies
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
@ballingt 14.2.18
18 replies
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
I tried logging from middleware and got this:
isAuthenticatedNextjs false
convexAuth false
isAuthenticatedNextjs false
convexAuth false
18 replies
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
Tried that, but it didn't work. I just commented this out and it actually redirected correctly:
export default convexAuthNextjsMiddleware((request) => {
// if (isSignInPage(request) && isAuthenticatedNextjs()) {
// return nextjsMiddlewareRedirect(request, "/releases");
// }
// if (isProtectedRoute(request) && !isAuthenticatedNextjs()) {
// return nextjsMiddlewareRedirect(request, "/signin");
// }
});
export default convexAuthNextjsMiddleware((request) => {
// if (isSignInPage(request) && isAuthenticatedNextjs()) {
// return nextjsMiddlewareRedirect(request, "/releases");
// }
// if (isProtectedRoute(request) && !isAuthenticatedNextjs()) {
// return nextjsMiddlewareRedirect(request, "/signin");
// }
});
18 replies
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
18 replies
CCConvex Community
Created by Rishad B on 11/22/2024 in #support-community
Google OAuth redirect issue
https://<name>.convex.site/api/auth/callback/google
18 replies