def METHOD_NAME(self, refresh_token):  # noqa: ANN001
    """Set the refresh token in the database.
    This function will overwrite an existing value if the corresponding ``key``
    already exists.
    """
    self._connection.execute(
        "REPLACE INTO tokens VALUES (?, ?, datetime('now'))",
        (self.key, refresh_token),
    )
    self._connection.commit()