feat(auth): add token cache with thread-safe auto-refresh

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
dailz
2026-04-09 10:31:27 +08:00
parent 49cbea948a
commit 2dcbfb95b0
3 changed files with 214 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package slurm
import "context"
// TokenSource provides tokens for authentication.
type TokenSource interface {
Token(ctx context.Context) (string, error)
}