This is an enterprise-only feature. Please contact us in slack or via email (hello@dynamic.xyz) 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 dynamicClient.auth.signInWithExternalJwt({ externalJwt, externalUserId })

or

await dynamicClient.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.