Skip to content

Commit

Permalink
Merge pull request authzed#143 from authzed/update-readme-example
Browse files Browse the repository at this point in the history
update client code example
  • Loading branch information
ecordell committed Aug 18, 2023
2 parents 2fb0fd4 + cff8db6 commit d5a620a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,14 @@ import (
)

...
systemCerts, err := grpcutil.WithSystemCerts(grpcutil.VerifyCA)
if err != nil {
log.Fatalf("unable to load system CA certificates: %s", err)
}

client, err := authzed.NewClient(
"grpc.authzed.com:443",
grpcutil.WithSystemCerts(grpcutil.VerifyCA),
systemCerts,
grpcutil.WithBearerToken("t_your_token_here_1234567deadbeef"),
)
if err != nil {
Expand Down

0 comments on commit d5a620a

Please sign in to comment.