Better AuthBA
Better Auth12mo ago
4 replies
Ted

Generating backup codes gives error

Doing:

const { data, error } = await authClient.twoFactor.generateBackupCodes({
      password: values.currentPassword,
    });


and getting:

 ⨯ [TypeError: The "payload" argument must be of type object. Received null] {
  code: 'ERR_INVALID_ARG_TYPE'
}
Was this page helpful?