diff --git a/apps/expo/src/components/SignInWithOAuth.tsx b/apps/expo/src/components/SignInWithOAuth.tsx deleted file mode 100644 index bf8718f..0000000 --- a/apps/expo/src/components/SignInWithOAuth.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { useOAuth } from "@clerk/clerk-expo"; -import React from "react"; -import { Button, View } from "react-native"; -import { useWarmUpBrowser } from "../hooks/useWarmUpBrowser"; - -const SignInWithOAuth = () => { - useWarmUpBrowser(); - - const { startOAuthFlow } = useOAuth({ strategy: "oauth_discord" }); - - const handleSignInWithDiscordPress = React.useCallback(async () => { - try { - const { createdSessionId, signIn, signUp, setActive } = - await startOAuthFlow(); - if (createdSessionId) { - setActive?.({ session: createdSessionId }); - } else { - // Modify this code to use signIn or signUp to set this missing requirements you set in your dashboard. - throw new Error("There are unmet requirements, modifiy this else to handle them") - - } - } catch (err) { - console.log(JSON.stringify(err, null, 2)); - console.log("error signing in", err); - } - }, []); - - return ( - -