Skip to main content
import { Text } from 'react-native';
import { useStytchMember } from '@stytch/react-native/b2b';

export const Home = () => {
  const { member } = useStytchOrganization();

  return member ? <Text>Welcome, {member.name}</Text> : <Text>Log in to continue!</Text>;
};
{
  "member": { ... },
  "fromCache": false
}
To get the currently signed in , use the useStytchMember hook. If the user is not signed in, the member object will be null. In non-React environments, use the self.getSync method to get the Member.

Return Value

member
object | null
The current Member.
fromCache
boolean
Whether the Session data is from persistent storage.