From 4b70379e9c8bf3ad4ca43e921bbbddbe0a25533d Mon Sep 17 00:00:00 2001 From: "Dr. Q and Company" Date: Sat, 28 Mar 2026 22:21:02 -0400 Subject: [PATCH] Use app-specific OAuth2 token retrieval Updated token retrieval to respect the active app name. Signed-off-by: Dr. Q and Company --- api/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/client.go b/api/client.go index 494fbd8..1f7ec02 100644 --- a/api/client.go +++ b/api/client.go @@ -346,7 +346,9 @@ func (c *ApiClient) getAuthHeader(method, url string, authType string, username } // If no auth type is specified, try to use the first OAuth2 token - token := c.auth.TokenStore.GetFirstOAuth2Token() + // Use ForApp variants so the active app name (set via --app) is respected. + // -dr. Q + token := c.auth.TokenStore.GetFirstOAuth2TokenForApp(c.auth.AppName()) if token != nil { accessToken, err := c.auth.GetOAuth2Header(username) if err == nil {