paul_11097
paul_11097
Explore posts from servers
BABetter Auth
Created by paul_11097 on 4/14/2025 in #help
magic link sendMagicLink using astro request is undefined
No description
6 replies
BABetter Auth
Created by paul_11097 on 4/14/2025 in #help
magic link sendMagicLink using astro request is undefined
iam using the client:
export async function inviteStartup(email: string): ErrorSafePromise<void> {
try {
console.log("start invite");
const { data, error } = await authClient.signIn.magicLink({
email: email,
callbackURL: "some/callback",
name: "test",
});
console.log("response", data?.status);
return [undefined, false];
} catch (err) {
return [null, true];
}
}
export async function inviteStartup(email: string): ErrorSafePromise<void> {
try {
console.log("start invite");
const { data, error } = await authClient.signIn.magicLink({
email: email,
callbackURL: "some/callback",
name: "test",
});
console.log("response", data?.status);
return [undefined, false];
} catch (err) {
return [null, true];
}
}
6 replies
BABetter Auth
Created by paul_11097 on 4/14/2025 in #help
magic link sendMagicLink using astro request is undefined
i want the user session because the email should been send with staff email
6 replies