quiet-flag-52938
11/07/2023, 4:49 PMconst ory = new OAuth2Api(
new Configuration({
basePath: `https://${process.env.ORY_PROJECT_SLUG}.<http://projects.oryapis.com|projects.oryapis.com>`,
accessToken: process.env.ORY_API_KEY,
}),
)
and this golang SDK seems to be the one to use for that code: https://github.com/ory/client-go
but when I use the NewAPIClient
method it asks for a Configuration
object which doesn’t have a base path or access token. I feel like I’m just looking in the wrong place…anyone know what the issue is?quiet-flag-52938
11/08/2023, 11:25 AMory.NewAPIClient(&ory.Configuration{
DefaultHeader: map[string]string{
"Authorization": "Bearer " + oryKey,
},
Servers: []ory.ServerConfiguration{
{
URL: oryURL,
},
},
})