Single-token OAuth revocation: refresh-token effects and reconnect behavior

Hi Square team,

We use the OAuth authorization-code flow, not PKCE, and are reviewing our seller disconnect behavior.

We’ve read the single-token revocation guide and the recent forum discussion:

We understand that revoke_only_access_token: true revokes the specified access token without terminating the entire authorization. Could you clarify three remaining points?

1. Associated refresh token

After successfully revoking an access token with this flag, does its associated refresh token remain usable to obtain another access token? Is there a supported way to revoke that refresh token specifically without removing the entire authorization?

2. Reconnect after a request timeout

Suppose we send a revoke for access token T1 with revoke_only_access_token: true, but our request times out and we do not receive the result. The seller subsequently completes OAuth again and we receive token T2.

If the earlier request is processed after T2 is issued, is its effect still strictly limited to T1, leaving T2 and the later authorization unaffected?

How does this differ from a merchant-wide revoke? Is there a supported way to establish the outcome of a revocation whose response was lost?

3. Expected disconnect behavior

Would the following satisfy Square’s seller-disconnection requirements?

  • Stop using the connection and delete our stored access and refresh tokens.

  • Request revocation of the specific access token with revoke_only_access_token: true.

  • Clearly explain that the overall authorization remains, and direct the seller to Square’s Dashboard if they want to remove it completely.

Or should an application’s Disconnect action always revoke the entire authorization?

We want to handle credential cleanup correctly without allowing an uncertain earlier revocation to disrupt a later connection.

Thank you.

Hi @cdp923,

  1. Yes. after revoking an access token with revoke_only_access_token: true, that access token stopped working, but its original refresh token successfully generated a working replacement. The public API does not provide a refresh-token-only revocation option. To invalidate the refresh token, revoke the entire authorization using revoke_only_access_token: false. The seller must then complete OAuth again to reconnect.

2. Reconnect after a timeout

Yes. With revoke_only_access_token: true and T1 supplied in access_token, the revocation is limited to T1. Processing that request after T2 is issued does not revoke T2 or terminate the overall authorization.

Full-authorization revocation is different: it revokes the application’s authorization for that seller, rather than one access token. It should not be treated as safe to process after a reconnect.

You can check a token’s current validity using RetrieveTokenStatus. As the reference states:

If the access token is expired or not a valid access token, the endpoint returns an UNAUTHORIZED error.

This checks whether the token is currently valid. It does not distinguish expiration from revocation or provide a receipt for the earlier request.

3. Expected disconnect behavior

Your application’s Disconnect action should revoke the entire authorization, not only delete stored credentials or revoke one access token. Use RevokeToken with revoke_only_access_token: false. The seller would then need to complete OAuth again to reconnect.

Single-access-token revocation is intended for situations where you want to invalidate one token while preserving the seller’s authorization. It is not the equivalent of fully disconnecting the application.

Hi @helner-square ,

Thank you very much for the reply and information…it’s very much appreciated! This clarifies the token-specific behavior and your expected disconnect flow.

One recovery question remains: we send RevokeToken with revoke_only_access_token: false, but the request times out and we never receive its outcome. The seller then wants to reconnect.

What supported procedure lets us establish that the earlier revocation can no longer invalidate a new authorization? Is there a maximum processing window, a request-status mechanism, or a support-assisted resolution?

We understand that RetrieveTokenStatus checks current token validity, but does not confirm whether that earlier request has finished processing.

If no such mechanism or bound exists, what reconnect behavior does Square recommend for this situation?

Thanks!

Hi @helner-square,

Following up on my Saturday reply. Thank you again for clarifying the disconnect requirements. We’ve implemented full-authorization revocation as advised, and this recovery question is the remaining issue we need to resolve before launch.

If a merchant-wide RevokeToken request times out without a confirmed outcome, what should we do when that seller wants to reconnect?

We want to avoid both allowing an earlier revocation to invalidate the new authorization and blocking the seller indefinitely.

Could you confirm whether there is a supported recovery procedure, a processing-time bound, or a way for Square support to establish that the original request has finished and cannot affect a later authorization?

If support can resolve individual cases, what identifiers or diagnostic information should we retain, and which support channel should we use?

If this needs input from the OAuth engineering team, would you please escalate it? We’re looking for Square’s recommended operational procedure, even if it requires manual support intervention.

Thanks,
Chad