Embedded App - how to decode and use the session token?

I would like to refresh this thread to increase the chance that somebody will see it.