Лучшая ачивка месяца
Connected github oauth2 to FastAPI
Tricky part was this - when you ask for info with the token, you get all fields, but without email: remote = request.app.oauth.create_client("github") res = remote.get('user', token=token) To get email you need get user/email: res2 = remote.get('user/emails', token=token)