Skip to content

[FEATURE]: Refresh wellknown auth on 401 Unauthorized #15433

@aberglund-cf

Description

@aberglund-cf

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When wellknown auth tokens expire they must be refreshed by executing opencode auth login https://.... If opencode was already running the process must also be restarted. A token with a short lifespan causes this to be a frequent annoyance.

A improved behavior would be to attempt a to execute the login flow for all configured welknown auth tokens after getting a 401 error response.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions