When to enroll
The recommended place to enroll users by adding a device credential is within a post-authentication handler. This handler should be triggered in the following two scenarios.- Immediately after the user signs in to the app.
- When the app is launched and the user is already authenticated (e.g. due to a persistent session).