OAuth Authorization Code Flow Tokens expire after few hours

So how is it if a token expires while a PubSub connection is active? Does it get terminated and has to reopened with the new token?