Closed DGuhr closed 1 year ago
Using the credentials example from the readme results in a "missing type in composite literal" error.
reproducer: https://go.dev/play/p/0wt9cNVIheg
fix: define it like this
... Config: &credentials.Config{ ApiToken: os.Getenv("OPENFGA_API_TOKEN"), // will be passed as the "Authorization: Bearer ${ApiToken}" request header },
see https://go.dev/play/p/n45oa0Rd4fZ
ok for whatever reasons you don't accept PRs, so feel free to change it yourself.
Using the credentials example from the readme results in a "missing type in composite literal" error.
reproducer: https://go.dev/play/p/0wt9cNVIheg
fix: define it like this
see https://go.dev/play/p/n45oa0Rd4fZ