telenordigital / connect-ios-sdk

Docs 📒👉
https://telenordigital.github.io/id-docs.telenordigital.com/integrate-ios-sdk.html
Apache License 2.0
9 stars 8 forks source link

AuthURL creation crashes app #75

Closed oscarkockum closed 3 years ago

oscarkockum commented 3 years ago

OAuth2Module.swift adds an "optional" string as a parameter to the Auth URL and which makes it crash when the URL is created,

let deviceId = UIDevice.current.identifierForVendor?.uuidString

if (deviceId != nil) { params += "&telenordigital_did=\(deviceId)" } }

Should be changed to something like this?

if let id = UIDevice.current.identifierForVendor?.uuidString { params += "&telenordigital_did=\(id)" }

Using Xcode 12.3, iOS 14.3

SerhiiBovtriuk commented 3 years ago

Hello,

I believe this issue was fixed in a linked PR.