Jake
Jake
WWasp-lang
Created by Jake on 3/15/2024 in #đŸ™‹questions
ngrok...
Thought would be cool to share the app with a colleague using ngrok. Its breaking because auth/me on 3001 XMLHttpRequest cannot load http://localhost:3001/auth/me due to access control checks. ngrok http http://localhost:3000 has anyone made it work? how did you make it work?
7 replies
WWasp-lang
Created by Jake on 3/14/2024 in #đŸ™‹questions
Upload files using multer
I was following this gist to setup multer for uploading files but ran into errors, then realized it may be written for the version 0.11.8. I will continue to debug. Here are the errors: [ Client!] 9:13:35 PM [vite] Internal server error: Failed to resolve import "@wasp/api" from "../../../src/UploadPage.jsx". Does the file exist? https://gist.github.com/infomiho/ec379df4e33f3ae3410a251ba3aa81af
8 replies
WWasp-lang
Created by Jake on 3/12/2024 in #đŸ™‹questions
Auth kicking out
This could be a normal behavior but feels weird. Please let me know if I can ignore. I can demo this app with Chrome and Safari so this won't happen in front of the stakeholders. I have 2 pages. Campaign page (get-campaigns) need auth. Upload page (get-campaign-by-token) does not need auth. Both pages are opened in Safari in different tabs. If I switch between tabs I am getting logged out. After writing this it sounds normal? Does it? Here is the log: [ Server ] POST /auth/username/login 200 46.360 ms - 56 [ Server ] GET /auth/me 200 1.272 ms - 218 [ Server ] GET /auth/me 304 1.062 ms - - [ Server ] POST /operations/get-campaigns 200 1.545 ms - 1489 [ Server ] GET /auth/me 304 2.095 ms - - [ Server ] POST /operations/get-campaigns 200 3.050 ms - 1489 [ Server ] GET /auth/me 304 4.509 ms - - [ Server ] GET /auth/me 304 4.591 ms - - [ Server ] POST /operations/get-campaigns 200 5.334 ms - 1489 [ Server ] GET /auth/me 304 5.211 ms - - [ Server ] GET /auth/me 304 2.999 ms - - [ Server ] POST /operations/get-campaigns 200 2.729 ms - 1489 [ Server ] POST /operations/get-campaign-by-token 401 2.901 ms - 43 [ Server ] POST /operations/get-campaign-by-token 200 2.989 ms - 385 [ Server ] GET /auth/me 401 0.392 ms - 43 [ Server ] POST /operations/get-campaigns 401 0.680 ms - 14
5 replies
WWasp-lang
Created by Jake on 3/10/2024 in #đŸ™‹questions
useAuth() usage
I made significant progress on my app using wasp over the weekend. I thought I will ask this before implementing something naive. Here is what i trying to resolve. There are 2 pages. An order page and an upload page. Order page requires authentication, Upload page does not. I have a Navbar component shared by both pages because Navbar is in the Layout page. Navbar uses useAuth() to get user data and controls the rendering of the user dropdown (picture, edit profile, logout) Now when I access the Upload page, I see a browser console error - 401 Unauthorized even though I haven't set authRequired to true. Is this happening because I am using useAuth() incorrectly. Can you please help?
4 replies
WWasp-lang
Created by Jake on 3/9/2024 in #đŸ™‹questions
Passwordless authentication
Do you support passwordless authentication out of the box? Similar to this: https://github.com/mikker/passwordless Thanks!
7 replies
WWasp-lang
Created by Jake on 3/8/2024 in #đŸ™‹questions
Integrating Radix UI
Can you please provide directions on how to integrate Radix UI to the wasp app?
5 replies