abehod
abehod
WWasp-lang
Created by abehod on 8/2/2024 in #đŸ™‹questions
How to access user's fields on FE from child table
@kapa.ai Oh, sorry forgot to mention that I wanna access user.businessDetails.subscriptionStatus where businessDetails is a table which has fk with user as useAuth hook result on frontend, is there a way to do that?
13 replies
WWasp-lang
Created by abehod on 8/2/2024 in #đŸ™‹questions
How to access user's fields on FE from child table
Oh, sorry forgot to mention that I wanna access user.businessDetails.subscriptionStatus where businessDetails is a table which has fk with user as useAuth hook result on frontend, is there a way to do that?
13 replies
WWasp-lang
Created by abehod on 6/30/2024 in #đŸ™‹questions
How to overwrite system api endpoint?
That's much better approach, thank you very much for your time!
9 replies
WWasp-lang
Created by abehod on 6/30/2024 in #đŸ™‹questions
How to overwrite system api endpoint?
thank you for your answer! I am trying to build 2 separated logins in my app: 1) For businesses 2) For their employees (something like app.com/business-slug/login) So my idea to implement this was to create 2 separate entites: one for business and one for employee. So the employee account flow would be: 1) Business creates an account for an employee -> employee instance is created in the Employee table with foreign key to Business as employer id, and new AuthIdentity created for business which represents this employee 2) When an employee logs in to the system, it basically passes the same flow as during the regular log in: checks AuthIdentity, creates Session and returns it to FE, where for now employee becomes logged in as a business and I would like to change it and make an employee logged an as an user with less rights. Let me know if you have any ideas how to achieve it
9 replies
WWasp-lang
Created by abehod on 6/16/2024 in #đŸ™‹questions
How to add signup validation on backend
Thank you for your answer!
9 replies
WWasp-lang
Created by abehod on 6/9/2024 in #đŸ™‹questions
How to change the order of fields in in signup page
Thank you for your asnwer! I have decided to implement my own form for such customization.
5 replies