Zachoo
Zachoo3mo ago

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!
8 Replies
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Zachoo
ZachooOP3mo ago
I think the docs for email verification are just incorrect they don’t set a flow variable
Julián David
Julián David3mo ago
hey!, this is public and available from my last Convex hackaton, is a Turborepo (Monorepo) example using auth with Next.js and React Native, feel free to learn the way it works https://github.com/hipdev/conjuntify-monorepo
GitHub
GitHub - hipdev/conjuntify-monorepo
Contribute to hipdev/conjuntify-monorepo development by creating an account on GitHub.
sam
sam3mo ago
Epic! Thank you for sharing. Will be invaluable to me soon on my journey to catch up to the smart folks using Convex.
sshader
sshader3mo ago
While this might not be the monorepo set up you have, https://github.com/get-convex/convex-auth-example/ is a pretty good launching point for seeing a working set up of Convex Auth. Would love to hear more about where the current docs are falling short
GitHub
GitHub - get-convex/convex-auth-example: Convex Auth example repo
Convex Auth example repo. Contribute to get-convex/convex-auth-example development by creating an account on GitHub.
Zachoo
ZachooOP3mo ago
Thanks I have looked through this the primary area I think the docs lack is the email validation flow, controlling the views and a clearer overview of the terms flow and the provider syntax. I think the current docs also don’t add a flow to the call to the password provider with verify set. Took a look is this just sign up ? how do you manage sign in ?
Julián David
Julián David3mo ago
GitHub
conjuntify-monorepo/apps/web/src/app/page.tsx at main · hipdev/conj...
Contribute to hipdev/conjuntify-monorepo development by creating an account on GitHub.
Zachoo
ZachooOP3mo ago
Hey can you elaborate on info regarding sessions times e.g. how long a user stays logged in once logged in i want to keep a users seszsion basically forever