Token’s format depends on signaling channel’s implementation. The default signaling channel (SocketSignalingChannel.mm) accepts a JSON string with two properties: token and host. Host is PeerServer’s URL and token is your ID. Currently, PeerServer doesn’t check client’s credential.
Client SDKs don’t care about how STUN and TURN server deploy. Just provide URL and credentials to SDK.