const { signIn } = createAuthClient({
baseURL: process.env.EXPO_PUBLIC_BETTER_AUTH_URL,
plugins: [
expoClient({
storage: SecureStore,
}),
magicLinkClient(),
],
});
const result = await signIn.magicLink(
{
email: email.trim(),
callbackURL: '/',
},
{
onSuccess: (ctx) => {
const setCookie = ctx.response.headers.get('set-cookie');
console.log('set-cookie', setCookie);
},
},
);
const { signIn } = createAuthClient({
baseURL: process.env.EXPO_PUBLIC_BETTER_AUTH_URL,
plugins: [
expoClient({
storage: SecureStore,
}),
magicLinkClient(),
],
});
const result = await signIn.magicLink(
{
email: email.trim(),
callbackURL: '/',
},
{
onSuccess: (ctx) => {
const setCookie = ctx.response.headers.get('set-cookie');
console.log('set-cookie', setCookie);
},
},
);