Skip to content

get refreshable tokens - #1510

Merged
clark-cant merged 1 commit into
nextlevelbuilder:devfrom
bilogic:dev
Aug 8, 2026
Merged

get refreshable tokens#1510
clark-cant merged 1 commit into
nextlevelbuilder:devfrom
bilogic:dev

Conversation

@bilogic

@bilogic bilogic commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

use the short lived token to get a refreshable one

Type

  • Feature
  • Bug fix
  • Hotfix (targeting main)
  • Refactor
  • Docs
  • CI/CD

Target Branch

Checklist

  • go build ./... passes
  • go build -tags sqliteonly ./... passes (if Go changes)
  • go vet ./... passes
  • Tests pass: go test -race ./...
  • Web UI builds: cd ui/web && pnpm build (if UI changes)
  • No hardcoded secrets or credentials
  • SQL queries use parameterized $1, $2 (no string concat)
  • New user-facing strings added to all 3 locales (en/vi/zh)
  • Migration version bumped in internal/upgrade/version.go (if new migration)

Test Plan

tested with dropbox

@clark-cant clark-cant left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 MCPOAuthHandlerDeps are 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

@clark-cant clark-cant added agent:github-maintain Processed by github-maintain automation maintain:triaged Triaged by maintain workflow labels Aug 8, 2026
@clark-cant
clark-cant merged commit fd532b4 into nextlevelbuilder:dev Aug 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:github-maintain Processed by github-maintain automation maintain:triaged Triaged by maintain workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants