googlearchive / go-gcm

GCM library for Go.
Apache License 2.0
105 stars 66 forks source link

Function to validate format of device's registration token #14

Open jaxyeh opened 8 years ago

jaxyeh commented 8 years ago

I don't know if it's possible, but it would be nice to have ability to check and validate the format of the device registration token before we pass to the server.

silvolu commented 8 years ago

Why are you worried about validating the token? You should be always getting it from the InstanceID library on the client, hence it should always be valid.