client: Resolves broken SDK test
@@ -48,7 +48,7 @@ func createTestClient(prefix string) hydra.OAuth2Client {
TosUri: prefix + "tos-uri",
ResponseTypes: []string{prefix + "id_token", prefix + "code"},
RedirectUris: []string{prefix + "redirect-url", prefix + "redirect-uri"},
- SecretExpiresAt: 0,
+ ClientSecretExpiresAt: 0,
}
}
@@ -67,7 +67,7 @@ func TestClientSDK(t *testing.T) {
t.Run("case=client is created and updated", func(t *testing.T) {
createClient := createTestClient("")
compareClient := createClient
- createClient.SecretExpiresAt = 10
+ createClient.ClientSecretExpiresAt = 10
// returned client is correct on Create
result, _, err := c.CreateOAuth2Client(createClient)
