Zachoo
CCConvex Community
•Created by Zachoo on 12/19/2024 in #support-community
Programmatically force convex to reload and re authenticate ?
Is there a way to force the Convex auth provider to refresh? I’m almost done building a full-stack monorepo using Next.js and Capacitor, leveraging the full capabilities of Convex, including authentication. Everything works fine until the iOS WebView gets killed in the background to save memory. As a result, when the user returns to the app after a period of inactivity, they end up in a stale state and are stuck on a loading screen. The only way to resolve this is by clearing the app from the background and reopening it, at which point it re authenticates correctly. Next Js
7 replies
CCConvex Community
•Created by Zachoo on 10/18/2024 in #support-community
Setting Up Convex Auth In Mono Repo
Hi everyone,
I’m struggling to implement a basic email/password signup flow with email verification and password reset functionality using Convex Auth in my monorepo. The documentation has been quite unclear, especially regarding the concepts of flows and providers, making it difficult to follow.
Could anyone guide me on how to create a straightforward account creation and signup process? Any tips or examples would be greatly appreciated!
Thanks!
10 replies
CCConvex Community
•Created by Zachoo on 10/7/2024 in #support-community
Send FCM notifications from convex backend
has anyone cracked sending FCM notification from convex nackend if i try use any admin sdk from google i get errors like the following.
" The package "crypto" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "util"
../../node_modules/.pnpm/jws@3.2.2/node_modules/jws/lib/data-stream.js:4:19:
4 │ var util = require('util');
╵ ~~
The package "util" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "util"
../../node_modules/.pnpm/jwa@1.4.1/node_modules/jwa/index.js:5:19:
5 │ var util = require('util');
╵ ~~
The package "util" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "buffer"
../../node_modules/.pnpm/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js:3:21:
3 │ var Buffer = require('buffer').Buffer; // browserify
╵ ~~~~
The package "buffer" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
"
can anyone point me in right direction to make work I have service account json as an env in convex
4 replies
CCConvex Community
•Created by Zachoo on 9/3/2024 in #support-community
Onboarding Flow Clerk x Convex Multitenant
Hi everyone,
I’m working on a multi-tenant app using Convex and Clerk. Currently, I have an onboarding flow that creates an organization in Clerk (which works fine). Once the organization is created, I then create a site entry in my database. For this process, I use the following code to get the current orgId:
The goal is to retrieve the orgId on the server so I can attach it to the data being indexed, which is part of the multi-tenant architecture.
The Issue:
Currently, when I go through the onboarding process, the organization is created successfully. However, when I attempt to add the site, I encounter the following error:
If I refresh and remove the onboarded flag, and then repeat the process, the site is created successfully but it uses the orgId of a different organization (the default one selected).
Can anyone help with this issue? It seems like the orgId isn’t being retrieved correctly during the site creation process.
Thanks!
4 replies