pusher / push-notifications-swift

Swift SDK for the Pusher Beams product:
https://www.pusher.com/beams
MIT License
34 stars 24 forks source link

Parsing token in a different JSON object format #147

Closed mmdev1 closed 4 years ago

mmdev1 commented 4 years ago

Can we have a way to parse a token in a different JSON object format? like below:

"data": {
        "id": "12345",
        "type": "beam-token",
        "attributes": {
            "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzMTc4NyIsImV4cCI6MTU"
        }
    }

as conformance to https://jsonapi.org

luismfonseca commented 4 years ago

Why do you want to parse the token? It should be an opaque string from the client perspective.