Maqed
BABetter Auth
•Created by Maqed on 4/15/2025 in #help
updating schema field of type: string[] doesn't work.

2 replies
BABetter Auth
•Created by Maqed on 4/12/2025 in #help
How can I get member with user in adapter

5 replies
BABetter Auth
•Created by Maqed on 4/12/2025 in #help
How can I get other plugin's option in my plugin?
I'm building a plugin to extend organization plugin. I want to get organizationOptions so I can handle other stuff in the plugin. How can I achieve that? I tried
but that didn't work even though organization plugin is setup correctly...
7 replies
BABetter Auth
•Created by Maqed on 4/10/2025 in #help
How to make two unique fields in a schema

2 replies
BABetter Auth
•Created by Maqed on 4/7/2025 in #bug-reports
Reference naming doesn't fit all use-cases

10 replies
BABetter Auth
•Created by Maqed on 4/3/2025 in #help
Plugin to extend organization plugin
Hello everyone 👋
I'm building a plugin to extend organizations by making sub-organizations. The idea is that I want to extend organization schema to include sub-organizations to make it one-to-many (one organization to many sub-organization) how can I achieve such thing?
I'm thinking of
auth.ts:
subOrganization.ts
I don't really like this implementation as I think it would be better If I could handle all of the schema logic inside my subOrganization plugin. Is there any way better than this to handle it? thank you in advance
2 replies
BABetter Auth
•Created by Maqed on 2/11/2025 in #help
Link phone number to existing users
As title says. Is there a way to link phone number to existing users? And after linking the phone number the user can sign in with this phone number.
2 replies
BABetter Auth
•Created by Maqed on 2/5/2025 in #help
Can I use Phone Number plugin to just add phone number to existing users?
Basically I just wanna add phone number to existing users. Can I use Phone number plugin to do so or should I implement it myself? because Everytime I verify the phone number. callbackOnVerification return null for the user. Here is my code:
client:
/lib/auth.ts:
11 replies
BABetter Auth
•Created by Maqed on 2/2/2025 in #help
Session fetched in the middleware doesn't update on every request.
As shown in the video, After signing in. I can go back to /login page even though I protected it using middleware.ts. I even tried no-storing the session but in vain.
Here is middleware.ts:
NOTE: same issue occurs when I sign out and I'm in a protected route. I don't get routed to /login for some reason.
45 replies
BABetter Auth
•Created by Maqed on 2/2/2025 in #help
Client side session isn't removed after deleting user

4 replies