Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch-package grant #305

Open
NHTfuntin31 opened this issue Aug 15, 2024 · 1 comment
Open

patch-package grant #305

NHTfuntin31 opened this issue Aug 15, 2024 · 1 comment

Comments

@NHTfuntin31
Copy link

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.

@simov
Copy link
Owner

simov commented Aug 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants