def METHOD_NAME() -> int:
    """
    Returns the next provider id so that the callback URL
    can be guessed before the provided is created.
    """
    with connection.cursor() as cursor:
        cursor.execute(
            sql.SQL("SELECT last_value + 1 from {table_id_seq};").format(
                table_id_seq=sql.Identifier(
                    f"{AuthProviderModel._meta.db_table}_id_seq"
                )
            )
        )
        return int(cursor.fetchone()[0])