export const authClient = createAuthClient({
baseURL: "http://localhost:3001" /* base url of your Better Auth backend. */,
plugins: [
expoClient({
scheme: "myapp",
storagePrefix: "myapp",
storage: SecureStore,
}),
],
});
const handleGoogleLogin = async () => {
await authClient.signIn.social({
provider: "google",
callbackURL: "/(app)/profile",
});
};
export const authClient = createAuthClient({
baseURL: "http://localhost:3001" /* base url of your Better Auth backend. */,
plugins: [
expoClient({
scheme: "myapp",
storagePrefix: "myapp",
storage: SecureStore,
}),
],
});
const handleGoogleLogin = async () => {
await authClient.signIn.social({
provider: "google",
callbackURL: "/(app)/profile",
});
};