From fa02ac65a5ef5bf829f601dabea7ff6296862783 Mon Sep 17 00:00:00 2001 From: = Date: Sat, 31 Jan 2026 00:39:47 +0530 Subject: [PATCH] feat: added review changes --- docs/cli/commands/login.mdx | 4 ++++ docs/sdks/languages/go.mdx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/cli/commands/login.mdx b/docs/cli/commands/login.mdx index e0ab02bba5..aaac2986ba 100644 --- a/docs/cli/commands/login.mdx +++ b/docs/cli/commands/login.mdx @@ -354,6 +354,10 @@ The login command supports a number of flags that you can use for different auth #### Description This authenticates the machine identity against the specified sub-organization. + + The `organization-slug` flag can be substituted with the `INFISICAL_AUTH_ORGANIZATION_SLUG` environment variable. + + If no organization slug is provided, the authentication session defaults to the organization where the machine identity was originally created. diff --git a/docs/sdks/languages/go.mdx b/docs/sdks/languages/go.mdx index 598922cd06..b724eea4aa 100644 --- a/docs/sdks/languages/go.mdx +++ b/docs/sdks/languages/go.mdx @@ -395,7 +395,7 @@ if err != nil { ## Organization Authentication -All SDK authentication methods support logging into a sub-organization that your machine identity has access to. +All SDK authentication methods support logging into a sub-organization that your machine identity has access to. This is optional and only necessary when attempting to authenticate into a sub-organization using an identity created at the root organization. Use the `.Auth().WithOrganizationSlug("")` method to specify which organization to authenticate against: