mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 12:27:44 +00:00
fix(organization): apply path methods for get-full-organization
This commit is contained in:
@@ -44,7 +44,6 @@ export const auth = betterAuth({
|
|||||||
},
|
},
|
||||||
emailVerification: {
|
emailVerification: {
|
||||||
async sendVerificationEmail({ user, url }) {
|
async sendVerificationEmail({ user, url }) {
|
||||||
console.log("Sending verification email to", user.email);
|
|
||||||
const res = await resend.emails.send({
|
const res = await resend.emails.send({
|
||||||
from,
|
from,
|
||||||
to: to || user.email,
|
to: to || user.email,
|
||||||
@@ -53,7 +52,6 @@ export const auth = betterAuth({
|
|||||||
});
|
});
|
||||||
console.log(res, user.email);
|
console.log(res, user.email);
|
||||||
},
|
},
|
||||||
sendOnSignUp: true,
|
|
||||||
},
|
},
|
||||||
account: {
|
account: {
|
||||||
accountLinking: {
|
accountLinking: {
|
||||||
@@ -125,7 +123,6 @@ export const auth = betterAuth({
|
|||||||
}/accept-invitation/${data.id}`,
|
}/accept-invitation/${data.id}`,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
console.log(res, data.email);
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
twoFactor({
|
twoFactor({
|
||||||
|
|||||||
@@ -725,7 +725,7 @@ export const createInternalAdapter = (
|
|||||||
field: "createdAt",
|
field: "createdAt",
|
||||||
direction: "desc",
|
direction: "desc",
|
||||||
},
|
},
|
||||||
limit: 10,
|
limit: 1,
|
||||||
});
|
});
|
||||||
const lastVerification = verification[0];
|
const lastVerification = verification[0];
|
||||||
return lastVerification as Verification | null;
|
return lastVerification as Verification | null;
|
||||||
|
|||||||
@@ -151,6 +151,9 @@ export const organizationClient = <O extends OrganizationClientOptions>(
|
|||||||
activeMember,
|
activeMember,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
pathMethods: {
|
||||||
|
"/organization/get-full-organization": "GET",
|
||||||
|
},
|
||||||
atomListeners: [
|
atomListeners: [
|
||||||
{
|
{
|
||||||
matcher(path) {
|
matcher(path) {
|
||||||
|
|||||||
Reference in New Issue
Block a user