While this SDK is still supported, we recommend using newer JavaScript SDK, which is optimized for React Native, but also comes with a host of other benefits.
React Native
import { dynamicClient } from '<path to client file>'; const handleLogout = async () => { await dynamicClient.auth.logout(); };