feat: add OAuth login and MCP session connect

This commit is contained in:
2026-09-01 12:06:01 -05:00
parent 3983d0b335
commit 9915ff0c5f
7 changed files with 408 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
package auth
import "testing"
func TestOAuthIdentity(t *testing.T) {
gotN, gotV := oauthIdentity(Config{Name: "tradey", Version: "0.9"})
if gotN != "tradey" || gotV != "0.9" {
t.Fatalf("%s %s", gotN, gotV)
}
gotN, gotV = oauthIdentity(Config{})
if gotN != DefaultName || gotV != DefaultVersion {
t.Fatalf("%s %s", gotN, gotV)
}
}