{"modulePath":"github.com/CubePathInc/cubecli","version":"v1.23.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package auth\n\n## Functions\n\n```go\nfunc BrowserLogin(cmd *cobra.Command, name, apiURL string, noBrowser, makeActive bool) error\n```\nBrowserLogin runs the OAuth login and stores the session in profile \\`name\\`.\n\n```go\nfunc NewCmd() *cobra.Command\n```\nNewCmd returns the \\`auth\\` command group.\n\n```go\nfunc NewLoginCmd() *cobra.Command\n```\nNewLoginCmd returns \\`login\\`, registered both at the root and under \\`auth\\`.\n\n```go\nfunc NewLogoutCmd() *cobra.Command\n```\nNewLogoutCmd returns \\`logout\\`, registered both at the root and under \\`auth\\`.\n\n```go\nfunc NoBrowser(cmd *cobra.Command) bool\n```\nNoBrowser resolves the --no-browser flag of a login command: what the user passed, otherwise whether this machine has no browser to open.\n\n```go\nfunc RevokeSession(creds *internalConfig.OAuthCredentials)\n```\nRevokeSession revokes a browser session on the server. Failures are only reported as a warning.\n\n```go\nfunc TokenLogin(cmd *cobra.Command, name, apiURL string, makeActive bool) error\n```\nTokenLogin asks for an API token, validates it and stores it in profile \\`name\\`.\n\n","path":"github.com/CubePathInc/cubecli/cmd/auth","name":"auth","synopsis":"","isRedistributable":true}
