global

def _otp_add_key(secret)

def _otp_add_key(secret)
  # Uniqueness errors can't be handled here, as we can't be sure the secret provided
  # is the same as the current secret.
  otp_key_ds.insert(otp_keys_id_column=>session_value, otp_keys_column=>secret)
end