Hello,
I believe there is a bug with session tokens on POS UI Extensions.
If the device has gone idle, it can take multiple attempts to get the session token.
I currently attempt to get the session token, if its null I’ll back off and retry a few times which normally fixes the issue.
I know a few other develops have similar code to fix this.