Package com.stytch.sdk.consumer.userManagement
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.
See: Description
-
Class Summary Class Description Email Represents an email address associated with a Stytch User PhoneNumber Represents a phone number associated with a Stytch User BiometricRegistration Represents a biometric registration associated with a Stytch User CryptoWallet Represents a Web3 login associated with a Stytch User WebAuthn Represents a WebAuthn registration associated with a Stytch User TOTP Represents a TOTP registration associated with a Stytch User OAuth Represents an OAuth registration associated with a Stytch User UserAuthenticationFactor A UserAuthenticationFactor represents a primary authentication factor associated with a Stytch User UpdateParams Data class used for wrapping parameters used with User updates SearchParams Data class used for wrapping parameters used for searching Users -
Interface Summary Interface Description UserManagement The UserManagement interface provides methods for retrieving an authenticated user and deleting authentication factors from an authenticated user.