From b2f8cb542ab3cfe5fe4bfbb2af74fb40aabe1be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bujdos=C3=B3=20Gerg=C5=91?= Date: Thu, 7 Nov 2024 19:36:37 +0100 Subject: [PATCH 1/2] added new redirect uri fix --- src/authsch.strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authsch.strategy.ts b/src/authsch.strategy.ts index cf5e1b4..a5bb32f 100644 --- a/src/authsch.strategy.ts +++ b/src/authsch.strategy.ts @@ -72,7 +72,7 @@ export class Strategy extends PassportStrategy { const base64 = Buffer.from(`${this.clientId}:${this.clientSecret}`).toString('base64'); const tokenResponse = await axios.post>( this.tokenEndpoint, - `grant_type=authorization_code&code=${authorizationCode}`, + `grant_type=authorization_code&code=${authorizationCode}${this.redirectUri ? `&redirect_uri=${this.redirectUri}` : ''}`, { headers: { 'Content-Type': 'application/x-www-form-urlencoded', From a4343fde7b4c095c9118fe4afb257e43ab7c30df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bujdos=C3=B3=20Gerg=C5=91?= Date: Thu, 7 Nov 2024 19:39:56 +0100 Subject: [PATCH 2/2] node version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 75dc19c..5c1ff18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kir-dev/passport-authsch", - "version": "2.2.0", + "version": "2.2.1", "description": "Passport.js Strategy for AuthSCH", "author": "Sámuel Fekete ", "keywords": [