Skip to main content
The useIsFullyLoggedIn hook returns whether the current user has a valid, active session. Use it to gate authenticated screens or trigger navigation after login.

Import

import { useIsFullyLoggedIn } from "@getpara/react-native-wallet";

Usage

import { useIsFullyLoggedIn } from "@getpara/react-native-wallet";
import { View, Text } from "react-native";

function App() {
  const { data: isLoggedIn } = useIsFullyLoggedIn();

  if (isLoggedIn === undefined) {
    return <Text>Loading...</Text>;
  }

  return (
    <View>
      {isLoggedIn ? <AuthenticatedScreen /> : <LoginScreen />}
    </View>
  );
}