Files
money/app/auth.tsx
2025-10-20 16:27:34 -04:00

18 lines
445 B
TypeScript

import { Button, View } from "react-native";
import { authClient } from "@/lib/auth-client";
export default function Auth() {
const onLogin = () => {
authClient.signIn.oauth2({
providerId: "koon-family",
callbackURL: process.env.NODE_ENV == 'production' ? 'https://money.koon.us' : "http://localhost:8081"
});
};
return (
<View>
<Button onPress={onLogin} title="Login with Koon Family" />
</View>
)
}