Skip to content

Commit 381fcc6

Browse files
authored
fix to use new oauth endpoint
1 parent a8b4283 commit 381fcc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/integrations/abrp/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const auth = (req, res, next) => {
3636
};
3737

3838
const getToken = (code, callback) => {
39-
request.get(`${srv_config.ABRP_API_URL}/token?client_id=${srv_config.ABRP_CLIENT_ID}&client_secret=${srv_config.ABRP_CLIENT_SECRET}&code=${code}`, {
39+
request.get(`${srv_config.ABRP_URL}/oauth/token?client_id=${srv_config.ABRP_CLIENT_ID}&client_secret=${srv_config.ABRP_CLIENT_SECRET}&code=${code}`, {
4040
json: true
4141
}, (err, resp, body) => {
4242
if (!err && body && body.access_token) {

0 commit comments

Comments
 (0)