{"modulePath":"github.com/deepsourcelabs/cli","version":"v0.10.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package auth\n\n## Types\n\n```go\ntype Device struct {\n\tCode                    string `json:\"deviceCode\"`              // Device Code\n\tUserCode                string `json:\"userCode\"`                // 8 figure User code to be used while authentication\n\tVerificationURI         string `json:\"verificationUri\"`         // URL to verify user code\n\tVerificationURIComplete string `json:\"verificationUriComplete\"` // URL to verify user code with the user code being sent as a URL param\n\tExpiresIn               int    `json:\"expiresIn\"`               // Time in which the device code expires\n\tInterval                int    `json:\"interval\"`                // Interval in which the client needs to poll at the endpoint to receive the PAT\n}\n```\n\n```go\ntype PAT struct {\n\tToken  string `json:\"token\"`  // PAT received from the server\n\tExpiry string `json:\"expiry\"` // Token expiry timestamp\n\tUser   struct {\n\t\tFirstName string `json:\"firstName\"` // User's firstname\n\t\tLastName  string `json:\"lastName\"`  // User's lastname\n\t\tEmail     string `json:\"email\"`     // User's email address\n\t} `json:\"user\"`\n}\n```\n\n","path":"github.com/deepsourcelabs/cli/deepsource/auth","name":"auth","synopsis":"","isRedistributable":true}
