Skip to content

Commit

Permalink
Merge d9eabe6 into bc65931
Browse files Browse the repository at this point in the history
  • Loading branch information
rinchsan authored Feb 28, 2021
2 parents bc65931 + d9eabe6 commit 7b3741b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ client := devicecheck.New(cred, cfg)
```go
var result devicecheck.QueryTwoBitsResult
if err := client.QueryTwoBits("DEVICE_TOKEN_FROM_CLIENT", &result); err != nil {
// error handling
switch {
// Note that SDK returns ErrBitStateNotFound error if no bits found
case errors.Is(err, devicecheck.ErrBitStateNotFound):
// handle ErrBitStateNotFound error
default:
// handle other errors
}
}
```

Expand Down

0 comments on commit 7b3741b

Please sign in to comment.