mario.p
WWasp
•Created by mario.p on 4/10/2025 in #🙋questions
Best approach for associating pre-registration data with user accounts after Email/Password + social
Hello everyone, I need some advice on the best procedure to implement this functionality:
I'm developing a system where users answer questions before registering. The responses are saved in the database with a temporary ID generated by the client and stored locally. Later, when the user completes registration (using Email & Password or social login methods), I want to associate those previously saved responses with the newly created user account.
What's the most correct way to handle this association?
Thanks in advance for your suggestions!
7 replies
WWasp
•Created by mario.p on 3/30/2025 in #🙋questions
Problem with custom signup Invalid credentials on Login.
Hi @kapa.ai ,
I'm using the function "import { signup } from 'wasp/client/auth';" to register the user with email and password. The registration is successful but when I try to enter with the email and password used during login it tells me "Invalid Credentials" even though the user has been correctly registered.
The only way to access is by resetting the password.
The only thing I changed is the reference to clientRoute in emailVerification in Main.wasp.
Can you tell me what I'm doing wrong?
Thanks!
8 replies
WWasp
•Created by mario.p on 3/30/2025 in #🙋questions
How to change /email-verification path properly in OpenSaas?
Hi @kapa.ai ,
I would like to change the path of the /email-verification route in OpenSaas, I could easily do it from the Main.wasp file but unfortunately I can't change the value that is passed to getVerificationEmailContent in /src/auth/email-and-pass/emails.ts
Can you help me understand how I can change the value of the path of the /email-verification route appropriately?
Thanks!
8 replies
WWasp
•Created by mario.p on 3/30/2025 in #🙋questions
How to custom redirect after signup with custom signup form?
Hi guys,
I'm creating an onboarding process in OpenSaas and I'm managing, through a custom form, the signup. I'm invoking the function "import { signup } from 'wasp/client/auth';" in case of registration with email and, I would need to make the user land on a specific page. At the moment the user is redirected to the default login page.
Do you have any suggestions?
Thank you!
9 replies
WWasp
•Created by mario.p on 3/28/2025 in #🙋questions
How to use wasp cli with a built project on a prod server?
Hi!
I'm trying to release my first project with WASP on a staging server. I would like to understand how I can use the wasp cli with a built project.
The idea is to be able to use the "wasp db" features mainly, such as the ability to seed or access "wasp db studio" even if it is not a recommended practice in production.
I managed, obviously, to deploy everything using Docker, I can also install the wasp utility but rightly it does not find a wasp project to hook into.
Do you have any ideas?
Thanks!
14 replies
WWasp
•Created by mario.p on 3/27/2025 in #🙋questions
🚀 EXPO + WASP: Help integrating mobile frontend with backend authentication! 🔐
Hello world!
I would like to develop a mobile frontend with EXPO and integrate it with the backend written with WASP. However, I have no idea how to use the authentication part (email and social) of WASP.
Does anyone have any advice/guides on how I could proceed? Thank you!
7 replies
WWasp
•Created by mario.p on 3/13/2025 in #🙋questions
How to integrate Swagger UI?
Hi @kapa.ai, can you explain me how can I integrate Swagger UI into a Wasp project? Thanks!
15 replies
WWasp
•Created by mario.p on 3/9/2025 in #🙋questions
How to import "Routes" from another file into Main.wasp? If possible.
Hi guys,
I'm looking for a way to define Routes in Wasp in a separate file (myroutes.wasp) and then import them into Main.wasp but I can't find anything from the documentation.
Does anyone have a suggestion or a solution?
Thanks!
8 replies
WWasp
•Created by mario.p on 2/17/2025 in #🙋questions
"Property 'value' does not exist on type XYZ"- but it exists. What am I doing wrong?
Hi everyone! In advance I would say that I am new to this technology and I am stuck with something that looks like a bug in WASP but I am not sure.
The error I receive when the build fails: Property 'user' does not exist on type '{ id: number; userId: string; }
The code:
File mypage.tsx
This is my operations file
File operations.ts
File Schema.prisma
What I have already tried that didn't work:
- wasp clean
- Adding new fields to the UserInstructor model and running
wasp db dev-migrate
I am working on Ubuntu 22 with Wasp 0.16.2
I hope someone can help me 🙂
Thanks!12 replies