grant icon indicating copy to clipboard operation
grant copied to clipboard

patch-package grant

Open NHTfuntin31 opened this issue 1 year ago • 1 comments
trafficstars

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/grant/config/oauth.json b/node_modules/grant/config/oauth.json
index 54afd00..f5f73e4 100644
--- a/node_modules/grant/config/oauth.json
+++ b/node_modules/grant/config/oauth.json
@@ -1179,5 +1179,11 @@
     "access_url": "https://zoom.us/oauth/token",
     "oauth": 2,
     "scope_delimiter": " "
+  },
+  "trackmania": {
+    "authorize_url": "https://api.trackmania.com/oauth/authorize",
+    "access_url": "https://api.trackmania.com/api/access_token",
+    "oauth": 2,
+    "scope_delimiter": " "
   }
 }
diff --git a/node_modules/grant/config/profile.json b/node_modules/grant/config/profile.json
index c5956c1..6259b26 100644
--- a/node_modules/grant/config/profile.json
+++ b/node_modules/grant/config/profile.json
@@ -634,5 +634,8 @@
   },
   "zoom": {
     "profile_url": "https://api.zoom.us/v2/users/me"
+  },
+  "trackmania": {
+    "profile_url": "https://api.trackmania.com/api/user"
   }
 }

This issue body was partially generated by patch-package.

NHTfuntin31 avatar Aug 15 '24 15:08 NHTfuntin31

Thanks, I'm going to add it to the config here as well.

Note that you could have added that same config in your own code when initializing Grant.

simov avatar Aug 15 '24 17:08 simov