Skip to content

Commit

Permalink
SM-1082: Update Go readme
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonhurst committed Feb 7, 2024
1 parent 4f8a6c6 commit 6d50e85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions languages/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ bitwardenClient, _ := sdk.NewBitwardenClient(&apiURL, &identityURL)

### Login

To login using an access token:
To login using an access token. Define some `statePath` and pass it to use state, or pass `nil` instead to not use state.

```go
apiKeyLogin, err := bitwardenClient.AccessTokenLogin(accessToken)
statePath := os.Getenv("STATE_PATH")

err := bitwardenClient.AccessTokenLogin(accessToken, &statePath)
```

---
Expand Down

0 comments on commit 6d50e85

Please sign in to comment.