Noah
Noah
WWasp
Created by ondiekijunior on 3/11/2025 in #đŸ™‹questions
Multitenant
Add middleware on the API routes, based on the subdomain, that determine the relevant organization and check the user is a part of it. thats the high level approach Can explain more if you want more details, I do this on block-spot.com
8 replies
WWasp
Created by aslauris on 4/26/2024 in #đŸ™‹questions
Storing additional data in session
It's a little different. I.e. the user has 3 organization memberships but is currently using organization A vs B This is important because the user may have different permissions across the workspaces, and the API should be wise to which organization the user is acting on behalf of. So yes it belongs to the user, but more so the session in the same way as saying "the user is logged in" i.e. "the user is authenticated to XYZ organizion currently" If you disagree @miho would appreciate your thoughts
18 replies
WWasp
Created by aslauris on 4/26/2024 in #đŸ™‹questions
Storing additional data in session
Bumping this, would like to use session based auth for organization use case. So need to store organization ID as a persistent session. Any tips for doing that in my backend code?
18 replies
WWasp
Created by Noah on 2/20/2025 in #đŸ™‹questions
New error in deployment
I rage switched back to fly.io LOL
10 replies
WWasp
Created by Noah on 2/20/2025 in #đŸ™‹questions
New error in deployment
happens on railway up:
> rollup --config --silent


[!] Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'
Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'



✕ [server-builder 11/11] RUN cd .wasp/build/server && npm run bundle
process "/bin/sh -c cd .wasp/build/server && npm run bundle" did not complete successfully: exit code: 1


Dockerfile:42

-------------------

40 | RUN cd .wasp/build/server && npx prisma generate --schema='../db/schema.prisma'

41 | # Building the server should come after Prisma generation.

42 | >>> RUN cd .wasp/build/server && npm run bundle

43 |

44 |

-------------------

ERROR: failed to solve: process "/bin/sh -c cd .wasp/build/server && npm run bundle" did not complete successfully: exit code: 1
> rollup --config --silent


[!] Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'
Error: Could not load /app/.wasp/out/sdk/wasp/dist/server/index.js (imported by src/server.ts): ENOENT: no such file or directory, open '/app/.wasp/out/sdk/wasp/dist/server/index.js'



✕ [server-builder 11/11] RUN cd .wasp/build/server && npm run bundle
process "/bin/sh -c cd .wasp/build/server && npm run bundle" did not complete successfully: exit code: 1


Dockerfile:42

-------------------

40 | RUN cd .wasp/build/server && npx prisma generate --schema='../db/schema.prisma'

41 | # Building the server should come after Prisma generation.

42 | >>> RUN cd .wasp/build/server && npm run bundle

43 |

44 |

-------------------

ERROR: failed to solve: process "/bin/sh -c cd .wasp/build/server && npm run bundle" did not complete successfully: exit code: 1
10 replies
WWasp
Created by Noah on 2/20/2025 in #đŸ™‹questions
New error in deployment
also tried wasp 0.16.2
10 replies
WWasp
Created by Noah on 2/20/2025 in #đŸ™‹questions
New error in deployment
I've tried old versions where it used to work, and I get the same error
10 replies
WWasp
Created by Noah on 2/20/2025 in #đŸ™‹questions
New error in deployment
This feels like it broke from under me, any help appreciated..
10 replies
WWasp
Created by Jake on 3/9/2024 in #đŸ™‹questions
Passwordless authentication
Actually quite easy once I figure it out! Nice work team
14 replies
WWasp
Created by Jake on 3/9/2024 in #đŸ™‹questions
Passwordless authentication
For viz, I got it working in this PR: https://github.com/Octember/block-spot/pull/3/files
14 replies
WWasp
Created by Noah on 2/19/2025 in #đŸ™‹questions
Examples of creating session with wasp 0.16.0
there it is import { createSession } from 'wasp/auth/session'
11 replies
WWasp
Created by Noah on 2/19/2025 in #đŸ™‹questions
Examples of creating session with wasp 0.16.0
Ill look at the wasp source
11 replies
WWasp
Created by Noah on 2/19/2025 in #đŸ™‹questions
Examples of creating session with wasp 0.16.0
@kapa.ai do you have any gists or code snippets using auth utilities?
11 replies
WWasp
Created by seppulcro on 2/15/2025 in #đŸ™‹questions
authRequired custom fn
Ive written this in other threads, but e.g. user organization role should be returned from useAuth IMO
18 replies
WWasp
Created by seppulcro on 2/15/2025 in #đŸ™‹questions
authRequired custom fn
more first-class support for useAuth would be lit, like some more customizability
18 replies
WWasp
Created by Noah on 1/25/2025 in #đŸ™‹questions
What are best practices for tweaking caching for react-query through wasp?
@yalcinos what are you trying to do?
27 replies
WWasp
Created by Jake on 3/9/2024 in #đŸ™‹questions
Passwordless authentication
14 replies
WWasp
Created by Noah on 2/17/2025 in #đŸ™‹questions
Passwordless login?
6 replies
WWasp
Created by Jake on 3/9/2024 in #đŸ™‹questions
Passwordless authentication
For context, my app has an invite flow where organization admins can invite members which creates like a shadow profile which can be claimed, but the user can use their account on accepting email invite without needing to set password
14 replies
WWasp
Created by Jake on 3/9/2024 in #đŸ™‹questions
Passwordless authentication
Following up here, any plan to support passwordless?
14 replies