codeant-ai-for-open-source[bot] commented on PR #38364:
URL: https://github.com/apache/superset/pull/38364#issuecomment-3992534096
## **Sequence Diagram**
Shows the core flow when the system refreshes an OAuth2 access token and
supports providers that return a single-use refresh token by replacing the
stored refresh token when present.
```mermaid
sequenceDiagram
participant Refresher
participant DBEngineSpec
participant Database
Refresher->>DBEngineSpec: Request fresh token using stored refresh_token
DBEngineSpec-->>Refresher: Return token_response (access_token,
expires_in[, refresh_token])
Refresher->>Refresher: Update access_token and expiration; if
refresh_token present replace stored refresh_token
Refresher->>Database: Persist updated token record
Refresher-->>Caller: Return new access_token
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]