mirror of
https://github.com/hanzo-fi/auth.git
synced 2026-10-30 20:33:21 +00:00
516 B
516 B
package main
import (
"context"
"github.com/formancehq/auth/pkg/client"
"github.com/formancehq/auth/pkg/client/models/components"
"log"
)
func main() {
s := client.New(
client.WithSecurity(components.Security{
ClientID: "",
ClientSecret: "",
}),
)
ctx := context.Background()
res, err := s.Auth.V1.GetOIDCWellKnowns(ctx)
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}