@redocly/theme 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,7 +103,7 @@ function DevOnboardingTryItSecurity(props) {
103
103
  if (res.ok) {
104
104
  const cred = data.credentials.find((cred) => cred.status === 'approved');
105
105
  setAcceptValueUpdate(true);
106
- setSelectedAppSecret(cred.clientSecret);
106
+ setSelectedAppSecret(cred[cred.valueToUseInHeader] || cred.clientSecret);
107
107
  }
108
108
  else {
109
109
  setError(data.message);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.12.0",
4
- "description": "Shared UI components lib",
3
+ "version": "0.12.1",
4
+ "description": "Shared UI components library",
5
5
  "keywords": [],
6
6
  "author": "team@redocly.com",
7
7
  "license": "SEE LICENSE IN LICENSE",
@@ -85,7 +85,7 @@ export function DevOnboardingTryItSecurity(props: TryItSecurityAppsProps) {
85
85
  if (res.ok) {
86
86
  const cred = data.credentials.find((cred: any) => cred.status === 'approved');
87
87
  setAcceptValueUpdate(true);
88
- setSelectedAppSecret(cred.clientSecret);
88
+ setSelectedAppSecret(cred[cred.valueToUseInHeader] || cred.clientSecret);
89
89
  } else {
90
90
  setError(data.message);
91
91
  }