update abstract method

Future<TotpResponse> update({
  1. required String loginId,
  2. required String refreshJwt,
})

Updates an existing user by adding TOTP as an authentication method.

In order to do this, the user identified by loginId must have an active DescopeSession whose refreshJwt should be passed as a parameter to this function.

This function returns a TotpResponse.key (seed) that allows authenticator apps to generate TOTP codes. The same information is returned in multiple formats.

Implementation

Future<TotpResponse> update({required String loginId, required String refreshJwt});