get refreshable tokens - #1510
Merged
Merged
Conversation
clark-cant
approved these changes
Aug 8, 2026
clark-cant
left a comment
Contributor
There was a problem hiding this comment.
PR #1510 Review — "get refreshable tokens"
Summary: Adds ExtraAuthParams to StartFlowParams so provider-specific OAuth authorization parameters (e.g. Dropbox's token_access_type=offline) can be passed through without overriding standard OAuth params. Includes a Dropbox-specific helper dropboxOfflineAuthParam() and comprehensive tests.
Risk level: Low — +125/-13, 4 files, focused on MCP OAuth flow, well-tested.
Mandatory gates:
- Duplicate / prior implementation: ✅ clear — no prior PR or issue for Dropbox refresh tokens or ExtraAuthParams
- Project standards: ✅ generated baseline — follows Go conventions, proper error handling, idiomatic test structure
- Strategic necessity: ✅ clear value — fixes Dropbox OAuth tokens expiring after ~4h with no refresh, real user pain point
Findings:
- No critical or important issues
- Code is clean, well-documented, and defensive (nil checks, URL parse error handling)
- Tests cover happy path, edge cases (malformed URL, non-Dropbox host), and security (standard params cannot be overridden)
- Struct alignment changes in
MCPOAuthHandlerDepsare cosmetic (go-fmt), not functional
Verdict: Approve — Low risk, well-scoped, good test coverage, solves a real problem.
Posted by /github-maintain at 2026-08-08T03:01:30Z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
use the short lived token to get a refreshable one
Type
main)Target Branch
Checklist
go build ./...passesgo build -tags sqliteonly ./...passes (if Go changes)go vet ./...passesgo test -race ./...cd ui/web && pnpm build(if UI changes)$1, $2(no string concat)internal/upgrade/version.go(if new migration)Test Plan
tested with dropbox