My App Instance is missing a few characters and not decoding. What should I do?

You need to use base64url decoding instead of normal base64. If this doesn't work, let us know.