This is an enterprise-only feature. Please contact us in slack or via email ([email protected]) to enable.

Dynamic supports signing in with third-party JWTs — read about it here.

In this page we’ll show how that can be achieved with our React Native SDK!

Notice that third-party auth must be enabled in your environment’s dashboard settings first! See how to here.

Providing an external JWT to dynamic

Once you have access to your user’s JWT and ID, just pass them both to Dynamic by calling:

await client.auth.signInWithExternalJwt({ externalJwt, externalUserId })

or

await client.auth.verifyWithExternalJwt({ externalJwt, externalUserId })

This promise resolves when the sign in is complete — and that’s it! You’re done.

You can find the reference for this method here.