MihaelIsaev / FCM

⚡️ PushNotifications through FireBase for Vapor 3 and 4.
MIT License
120 stars 33 forks source link

fixed decode token issue #27

Closed krezzoid closed 3 years ago

krezzoid commented 3 years ago

Hey,

I found strange issue, with used res.content.decode(Result.self) access_token was not decoded (at the same time JSON body with access_token received) and in total it was impossible to send FCM message.

So, I replaced this call to decode access_token using JSON decoder and everything works well.

MihaelIsaev commented 3 years ago

Thank you! It is available in 2.8.1 now 🚀