miho
miho
Explore posts from servers
WWasp
Created by fred-123 on 2/17/2025 in #🙋questions
Is there a way to track if a user actually clicked the email verification link
I'd advise you to check https://wasp.sh/docs/auth/entities to understand the auth entities structure and then you can do something like this:
import {
createProviderId,
findAuthIdentity,
updateAuthIdentityProviderData,
getProviderData,
} from 'wasp/server/auth';

const providerId = createProviderId('email', args.email)
const authIdentity = await findAuthIdentity(providerId)
if (!authIdentity) {
throw new HttpError(400, "Unknown user")
}

const providerData = getProviderData<'email'>(authIdentity.providerData)
// providerData will have `isEmailVerified`
import {
createProviderId,
findAuthIdentity,
updateAuthIdentityProviderData,
getProviderData,
} from 'wasp/server/auth';

const providerId = createProviderId('email', args.email)
const authIdentity = await findAuthIdentity(providerId)
if (!authIdentity) {
throw new HttpError(400, "Unknown user")
}

const providerData = getProviderData<'email'>(authIdentity.providerData)
// providerData will have `isEmailVerified`
7 replies
WWasp
Created by tk-421 on 2/16/2025 in #🙋questions
Creating an on-prem product?
Just to chime in - we had people deploy apps on perm and we added recently self-hosting info to our docs
13 replies
WWasp
Created by seppulcro on 2/15/2025 in #🙋questions
authRequired custom fn
useAuth is what I'd suggest as well 👍 wrapping it into a custom hook you can reuse across pages sounds fine
12 replies
WWasp
Created by mm on 2/13/2025 in #🙋questions
Error when I installed puppeteer and turndown
Are you importing something that is importing pupeteer? 😄 If the error is reported in the browser console, it must be imported somewhere on the client
25 replies
WWasp
Created by A³Learn on 2/15/2025 in #🙋questions
Google Auth - merge identities
For now without us supporting this feature... you could allow users to connect their Google account in their profile or smth like that and then next time they could also use Google auth. It would require developing custom actions to pull it off, I'm just trying to think what you could without us implementing the feature
7 replies
WWasp
Created by A³Learn on 2/15/2025 in #🙋questions
Google Auth - merge identities
This is something we wanted to tackle for a long time: https://github.com/wasp-lang/wasp/issues/954 We want to expose some sort of a hook in which you can combine multiple accounts based on e.g. email
7 replies
WWasp
Created by Noah on 2/15/2025 in #🙋questions
Per-Path Middleware for actions/operations
Yep, we agree with you 😄 we are tracking it here: https://github.com/wasp-lang/wasp/issues/2396 Have you tried setting API middleware for a particular operation route? It could be a potential hack for now
6 replies
WWasp
Created by seppulcro on 2/15/2025 in #🙋questions
Invalid discriminator value. Expected 'development' | 'production'
Thanks for the report, I'll create an issue for to fix it 👍
12 replies
WWasp
Created by seppulcro on 2/15/2025 in #🙋questions
Invalid discriminator value. Expected 'development' | 'production'
Could you link to the place in the docs where we didn't use await? I see here https://wasp.sh/docs/auth/entities#custom-signup-action that we use await
12 replies
WWasp
Created by seppulcro on 2/15/2025 in #🙋questions
Invalid discriminator value. Expected 'development' | 'production'
Yep, it's a bug that just caught ourselves 🤦🏻‍♂️ we didn't set the default value properly for NODE_ENV. Thank you for understanding, the fix will go out soon with 0.16.3
12 replies
WWasp
Created by Stefan Vitória on 12/20/2024 in #🙋questions
Custom subdomain and domain for my saas users
I believe the first step would be figuring this out in a regular web app case (pretending you are not using Wasp) and then coming up with an API within Wasp to make this easy to do. I'd guess some sort of auth setup fn where you provide the options for cookies 😄 Let us know where you land and how you think Wasp could support you
13 replies
WWasp
Created by InterestEmpire on 2/14/2025 in #🙋questions
You need to enable JavaScript to run this app.
@InterestEmpire definitely check the terminal where you started the app for any errors e.g. missing env vars or the Vite process crashing etc. Also check the browser console for any issues (Right click > Inspect in most browsers)
18 replies
WWasp
Created by Noah on 2/13/2025 in #🙋questions
How to import enums from prisma?
import type can only be used to import types and not values. Typescript compiler strips out all type info when compiling to Javascript. For example, our full-stack type safety relies on this. Normally we aren't allowed to import stuff from the server on the client, but if it's only types when the code reaches the browser - it no longer has type imports and it's completely valid to run in the browser. import type is a nice way of giving extra info to the Typescript compiler "hey, I'm only importing types here, you can get rid of this whole import statement"
12 replies
WWasp
Created by Noah on 2/13/2025 in #🙋questions
How to import enums from prisma?
If you are importing them using import type you are good 👍 Typescript strips away the type imports which then can't cause issues in the browser. Imports of server-side values like enum values can't be stripped and cause issues.
12 replies
WWasp
Created by Taha on 2/14/2025 in #🙋questions
Configuration Causing API Conflicts in Wasp Application
We need to see some code to be able to help 🙂 pls share you api and apiNamespace declarations
6 replies
WWasp
Created by InterestEmpire on 2/14/2025 in #🙋questions
You need to enable JavaScript to run this app.
Do you have Javascript disabled in your browser?
18 replies
WWasp
Created by Noah on 2/13/2025 in #🙋questions
How to import enums from prisma?
The bot is not 100% correct, we support enums in the Prisma file. You can't import them from wasp/entities... you can import them from @prisma/client but only on the server. e.g. import { Enum } from '@prisma/client';
12 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
Where are you storing the Markdown content? You shouldn't lose it if you keep it in the src dir in Git?
28 replies
WWasp
Created by Phuong on 2/13/2025 in #🙋questions
fix UI
Could you please explain in more detail what are you trying to achieve?
5 replies
WWasp
Created by A³Learn on 2/12/2025 in #🙋questions
16.2 where is wasp on fly-server
We have always copied the src dir into the SDK dir, we did rename it from ext-src to src. You can copy stuff from the SDK or your actual src since you have all the files available.
28 replies