Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

555 B
Raw Blame
import { useRouter } from "expo-router";
import { useEffect } from "react";
import { routes } from "@/routes";

/**
 * `/auth/native-callback`, the OAuth redirect. On Android the App Link (or the development scheme) also reaches the
 * router while the sign-in session reads the code from it, so this screen only steps back to where the user was.
 */
export default function NativeCallback() {
	const router = useRouter();
	useEffect(() => {
		if (router.canGoBack()) router.back();
		else router.replace(routes.signIn());
	}, [router]);

	return null;
}