Skip to main content
After configuring the settings, you can “sign-in” with a non-Dynamic JWT token by calling the appropriate method for your platform. React Native provides external authentication through the dynamic client’s auth methods.
React Native
import { dynamicClient } from '<path to client file>';

try {
  // `externalUserId`: User ID in the external auth system
  // `externalJwt`: Raw encoded JWT issued by external auth system
  await dynamicClient.auth.external.signInWithExternalJwt({
    externalUserId,
    externalJwt
  });

  // You should be logged in at this point
} catch (e: any) {
  console.error('Dynamic login failed:', e);
}
After this point, you can use the Dynamic SDK to access the user’s profile and other data, just as you would with any other user.