Package-level declarations

The UserManagement.kt interface provides methods for retrieving an authenticated user and deleting authentication factors from an authenticated user.

You can choose to get the local representation of the user, without making a network request, with the StytchClient.user.getSyncUser() method.

If you want to get the freshest representation of the user from the Stytch servers, use the StytchClient.user.getUser() method.

To remove an authentication factor from a user, use the StytchClient.user.deleteFactor() method.

To update a user, use the StytchClient.user.update() method.

Call the StytchClient.user.onChange() method with a callback to be triggered on changes to the underlying user. Alternatively, you can listen directly to the flow using the StytchClient.user.onChange StateFlow.

Types

Link copied to clipboard

A UserAuthenticationFactor represents a primary authentication factor associated with a Stytch User

Link copied to clipboard
interface UserManagement

The UserManagement interface provides methods for retrieving an authenticated user and deleting authentication factors from an authenticated user.