Wasp

W

Wasp

Join the community to ask questions about Wasp and get answers from other members.

Join

Generate User API Key for external calls

How a user in my app could create a token to make API calls from the outside?

is there a way how to trigger the socket.io in action

i want to have action and also a way to trigger websocket or socket.io just by triggering the action and not action or socket.io/websocket

Best way to implement custom LDAP authentication in Wasp

Hi everyone, I’m considering implementing a custom authentication method in Wasp using LDAP, but I’m not sure if it’s the right approach. I know that Wasp provides built-in authentication, and I’ve seen that there’s an onBeforeLogin hook that I could potentially use for this with the usernameAndPassword-method. However, that feels like a bit of a hack, and I’d rather follow a proper approach if one exists. Can someone guide me in the right direction?...

Mobile app

Wasp: 0.13.x Hello, I am planning to make a native app for my platform, and since actions and queries relies on context, I am not sure if there is a way to be able to make it as API calls, so it can be implemented in a native mobile app. Any idea how could this be done? The platform uses lots of actions and queries. Would be the only solution to make API calls for each one of the actions and queries already implemented?...

Email does not work after deployment

I have tried Mailgun, Sendgrid, and SMTP (from Sendgrid). All of these options send email just fine on my local machine. Once I deploy to Fly.io, no emails get sent. I have ensured all server environment variables are set through Fly.io secrets. I have verified they are there. I have re-deployed many times after setting the secrets. Nothing seems to have any effect whatsoever. I get no errors from the client side, and no network errors....

Realtime

How to do realtime queries

google auth

i ve issues with google auth setup http://localhost:3001/auth/google/callback how to this really works cause me doesn't reach ???1!!!! This site can’t be reached localhost refused to connect....

Attaching DigitalOcean database

I am trying to attach a DigitalOcean database but I get the following error:
2025-03-13T17:35:01.847 app[287172eb0d0dd8] ams [info] Error: P1010: User `doadmin` was denied access on the database `defaultdb.public
2025-03-13T17:35:01.847 app[287172eb0d0dd8] ams [info] Error: P1010: User `doadmin` was denied access on the database `defaultdb.public
...

CRUD Type Errors on Compile or Restart

Hello! I am using wasps CRUD functionality but have run into an issue. To successfully compile and start, I have to copy and delete my CRUD declarations from main.wasp and then paste them back once it's compiled and started. Things then work normally until I need to restart again.
No description

How to integrate Swagger UI?

Hi @kapa.ai, can you explain me how can I integrate Swagger UI into a Wasp project? Thanks!

Guide to integrate a new Payment Aggregator

Is there any guide i can follow to integrate a new payment provider?

Issues with upgrading wasp project to v15

I'm trying to update my wasp project up to 0.15.1, the same version I'm currently running on my machine, but whenever I attempt any wasp command (wasp db start or wasp start), I get an error:
- Wasp requires package "prisma" to be version "5.19.1" in package.json.
- Wasp requires package "prisma" to be version "5.19.1" in package.json.
I've already run wasp clean, and have changed my wasp version in my main.wasp file to be 0.15.1...

Google OAuth : Missing required parameter: scope

Hi - I am working on a project locally and Google OAuth suddenly stopped working and shows an error saying “Access blocked: Authorization Error” and “Missing required parameter: scope” It worked fine yesterday and looking through the docs, it seems like the config in code and on GCloud are okay. I am using the saas template. Wasp version 0.16.2. The app starts fine without errors on wasp start, login with email & password is fine. Confirmed that the Client ID & secret are .env.server...
No description

Custom database is active and accepting connections but I cannot start the project

I am using "wasp start" and "wasp db migrate-dev" since it is a new fresh database. How to get it started as there is no documentation regarding this

How can I modify getVerificationEmailContent to support language-based email content?

Hello everyone, I'm using Wasp's built-in authentication and have configured email verification in my main.wasp file. The functions getVerificationEmailContent and getPasswordResetEmailContent currently only accept an object with a verificationLink. However, I would like to send emails in different languages based on a language field stored in one of my database tables. I've reviewed the documentation but couldn’t find a way to pass an extra parameter (e.g., the user's language) to these functions or to dynamically choose the email content based on the language. ...

Help needed: Cannot find module '@wasp/auth'

🚨 Help needed: Cannot find module '@wasp/auth' Hi everyone, I'm having trouble compiling my Wasp project, and I keep getting errors related to @wasp/auth. 🔴 Error messages:...

Set cookies in response headers

I want to set a third party cookie in response headers for a action or query. How can I achieve this

Deploying Wasp on Railway using SupaBase

Hey everyone. I have fully built my saas app using the open saas template and now was to deploy it using Railway. I am having a hard time getting it to deploy successfully. Has anyone else launch on Railway with SupaBase ? Thanks in advance Currently the error I am getting in Railway after deploying is : Starting Container...

Set-up Hosting SAAS Wasp on Digital Ocean

Hey all! I'm trying to set-up the basic Open SaaS Wasp application on Digital Ocean. I was able to get it running locally without any issues. I got the base version running from the "Getting Started" page locally. Saved that app on GitHub. Now I want to use the GitHub repo as a source for a Digital Ocean App Platform....

Multitenant

I am contemplating on vibe coding a multitenant saas with multiple subdomains, so basically for teams. The built in auth for opensaas has scant ways on how to achieve that, and my tries are just error ridden. any elegant way of doing that?