Skip to content

Instantly share code, notes, and snippets.

@armyofda12mnkeys
armyofda12mnkeys / auth.ts
Created October 5, 2023 20:14 — forked from michaelkremenetsky/auth.ts
Supabase Auth Hook
import { Alert } from "react-native";
import * as WebBrowser from "expo-web-browser";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { initiateAppleSignIn } from "../utils/auth";
export const useAuth = () => {
const Supabase = useSupabaseClient();
const signInWithPassword = async (