<filename>frappe/patches/v14_0/update_github_endpoints.py
import frappe
import json


def execute():
	if frappe.db.exists("Social Login Key", "github"):
		frappe.db.set_value(
			"Social Login Key", "github", "auth_url_data", json.dumps({"scope": "user:email"})
		)

<filename>frappe/patches/v14_0/update_github_endpoints.py
import frappe
import json


def execute():
	if frappe.db.exists("Social Login Key", "github"):
		frappe.db.set_value(
			"Social Login Key", "github", "auth_url_data", json.dumps({"scope": "user:email"})
		)
