Netrifier
Netrifier
BABetter Auth
Created by shabiii on 3/14/2025 in #help
Error 400: redirect_uri_mismatch
No description
3 replies
BABetter Auth
Created by yoyojoe on 3/13/2025 in #help
Admin Users Count
Can you share which adapter you are using and its configuration?
7 replies
BABetter Auth
Created by Mads on 3/5/2025 in #help
InviteMember roles as array
4 replies
BABetter Auth
Created by MaveriX89 on 3/12/2025 in #help
Adding Members to Organization with Teams Enabled
if you are using nextjs then you can check the team in the page component which will run on the server and pass the team to the rest of the components.
14 replies
BABetter Auth
Created by MaveriX89 on 3/12/2025 in #help
Adding Members to Organization with Teams Enabled
that would need to be handled at the application level as better-auth will only manage the auth You can query the team which includes the user and display this to the user.
14 replies
BABetter Auth
Created by MaveriX89 on 3/12/2025 in #help
Adding Members to Organization with Teams Enabled
yes, you need to add teamId in the member and invitation schema
14 replies
BABetter Auth
Created by MaveriX89 on 3/12/2025 in #help
Adding Members to Organization with Teams Enabled
pr is ready for review, Let me know if the adapter method change looks good or if it should be reverted.
14 replies
BABetter Auth
Created by MaveriX89 on 3/12/2025 in #help
Adding Members to Organization with Teams Enabled
Hey, I modified the findTeamById function in the org adapter to take in additional arguments. Does this look good to you, or would it be better to revert back to the original?
findTeamById: async <IncludeMembers extends boolean>({
teamId,
organizationId,
includeTeamMembers,
}: {
teamId: string;
organizationId?: string;
// Only return members if required
includeTeamMembers?: IncludeMembers;
}): Promise<
(Team & (IncludeMembers extends true ? { members: Member[] } : {})) | null
> => {
findTeamById: async <IncludeMembers extends boolean>({
teamId,
organizationId,
includeTeamMembers,
}: {
teamId: string;
organizationId?: string;
// Only return members if required
includeTeamMembers?: IncludeMembers;
}): Promise<
(Team & (IncludeMembers extends true ? { members: Member[] } : {})) | null
> => {
14 replies
BABetter Auth
Created by MaveriX89 on 3/12/2025 in #help
Adding Members to Organization with Teams Enabled
Hey @Ping , I'd be glad to make a pr to add teamId to addMember. Would that be okay?
14 replies
BABetter Auth
Created by MaveriX89 on 3/12/2025 in #help
Adding Members to Organization with Teams Enabled
It seems the addMember function currently doesn't include the ability to specify a teamId.
14 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
https://github.com/better-auth/better-auth/pull/1792 This only changes types for add member and create invitation to stop those typescript errors. These changes do not break backwards compatibility.
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
I was thinking of defining an utility function then calling it wherever roles are needed which will increase maintainability as the logic will be in one place
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
this wouldn't be that bad and array.isarray is very fast
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
yes, I will do some tests and see, and if the team gives the go ahead I can make a pr
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
I think this would be the better option
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
if somehow both can be supported then it would be fine
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
this would definitely be a breaking change
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
if the better-auth team give the go ahead I am ready to make a pr
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
so this would mean a partial refactoring of the organisation plugin to switch the string to array
51 replies
BABetter Auth
Created by MaveriX89 on 3/11/2025 in #help
Admin + Organization Plugin: Role Columns
the typed array would be great but not all databases support storing arrays so they still need to be stored as string separated with comma but this serialization can be handled in the adapter
51 replies