diff --git a/package-lock.json b/package-lock.json index 898e550..ff9127a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kir-dev/passport-authsch", - "version": "2.0.2", + "version": "2.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kir-dev/passport-authsch", - "version": "2.0.2", + "version": "2.0.3", "license": "MIT", "dependencies": { "axios": "^1.7.4", diff --git a/package.json b/package.json index fc6d95a..197885d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kir-dev/passport-authsch", - "version": "2.0.2", + "version": "2.0.3", "description": "Passport.js Strategy for AuthSCH", "author": "Sámuel Fekete ", "keywords": [ diff --git a/src/util.ts b/src/util.ts index 4c078c5..2f06fa9 100644 --- a/src/util.ts +++ b/src/util.ts @@ -42,7 +42,7 @@ export const parseAuthSchProfile = (profileData: RawAuthSchProfile): AuthSchProf groupName: e.groupName, entrantType: e.entrantType, })), - address: profileData.address.formatted, + address: profileData.address?.formatted, phone: profileData.phone_number, phoneVerified: profileData.phone_number_verified, });