p4j4r5
p4j4r5
WWasp-lang
Created by p4j4r5 on 11/16/2024 in #đŸ™‹questions
sendgrid use email templates
I would like to use the email templates in sendgrid so that it easier to reform the templates without deployment and isolated place to maintain these. however I find the emailSender from 'wasp/server/email` only allows the type that is for emails where html and text versions are mandatory
5 replies
WWasp-lang
Created by p4j4r5 on 11/15/2024 in #đŸ™‹questions
is it possible to store the token that is created after login into browser localstore
I need to login into extension. I have different flow as of now. But wondering if having user login on website and once successful, update the local store that extension access for the token
5 replies
WWasp-lang
Created by p4j4r5 on 11/8/2024 in #đŸ™‹questions
How to add delay to all responses
I would like to test user interactions with delayed responses so that I can handle delays properly on UI.
11 replies
WWasp-lang
Created by p4j4r5 on 11/7/2024 in #đŸ™‹questions
How to use authUser conditionally in a react page?
I need to show a page, not all of it , if user is logged in, then I would need to show all of the content. Not sure how I can achieve this, because when I define a route in wasp file, I can access the user object unless I make authRequired as true.
19 replies
WWasp-lang
Created by p4j4r5 on 11/5/2024 in #đŸ™‹questions
How differentiate different status codes on client from HTTPerror thrown
I have operations that find a document by id and throws error 404 if not found. On client side , I want to check for status code is 404 and then udpate UI saying no documents present. In the console, the type of the error thrown comes as WASPHttperror, but I could n'tfind this type to reference in client code.
10 replies
WWasp-lang
Created by p4j4r5 on 10/21/2024 in #đŸ™‹questions
Can I disable cors on backend
I am using a nginx side car container to handle cors. However the server also tried to handle cors and it is sending multiple origins. I tried the middleware suggested in this and that doesn't work https://wasp-lang.dev/docs/advanced/middleware-config#1-customize-global-middleware I need to allow requests from https://youtube.com because the content script in the extension makes call from this domain
11 replies
WWasp-lang
Created by p4j4r5 on 10/18/2024 in #đŸ™‹questions
Can't find example to configure logging(ex winston) on the server.
I would like log some information during api calls . I would like it to be debug for dev and info for production. And also log thing in json format instead of lines which get split across in log aggregation framework. Any suggestion how to achieve this
6 replies
WWasp-lang
Created by p4j4r5 on 10/16/2024 in #đŸ™‹questions
How to build the just web-app
I am trying to deploy web-app to cloudflare pages. Cloudflare pages uses git commit and checks out code . Then builds and deploy the web-app. I would like to build just the web-app is this possible
11 replies
WWasp-lang
Created by p4j4r5 on 10/14/2024 in #đŸ™‹questions
How to install paritcular version of wasp
I am trying to setup CI and find that wasp version is increased. Not in position to upgrade the wasp on the code yet. How to install a particular version in cli.
6 replies
WWasp-lang
Created by p4j4r5 on 10/10/2024 in #đŸ™‹questions
How to create a credit plan where I want to provide credits to multiple user features
I have app which has multiple features . So if he purchase one time credit, the credit amounts for feature 1 should increase by 10, feature 2 by 20 and feature 3 by 30. This because some feature are costly as they use dependent services and other feature we want to limit so that they don't abuse the system.
11 replies
WWasp-lang
Created by p4j4r5 on 9/30/2024 in #đŸ™‹questions
Opensaas
I don't see Price ID in Sass, but just the product ID. Are they same?
7 replies
WWasp-lang
Created by p4j4r5 on 9/26/2024 in #đŸ™‹questions
how to debug wasp api endpoint using breakpoints
I would like to debug using debugger and breakpoints. Is there way to achieve this when using opensaas that is setup using wasp?
10 replies
WWasp-lang
Created by p4j4r5 on 9/20/2024 in #đŸ™‹questions
RSA algorithim for /auth/exchange-code
I need to authenticate users on chrome extenstion using goolge Auth. However I facing issue with ID_token retrieved by google. When I try to exchange that with endpoint we have /auth/exchange-code it give invalid algorithim. Seems opensaas or weblang only supports HS256 , not RS256 based token. Anyone suggestion to overcome ?
23 replies