File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
finch-java-core/src/main/kotlin/com/tryfinch/api/core Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -437,11 +437,6 @@ private constructor(
437437 headers.put(" X-Stainless-Runtime" , " JRE" )
438438 headers.put(" X-Stainless-Runtime-Version" , getJavaVersion())
439439 headers.put(" Finch-API-Version" , " 2020-09-17" )
440- accessToken?.let {
441- if (! it.isEmpty()) {
442- headers.put(" Authorization" , " Bearer $it " )
443- }
444- }
445440 clientId?.let { username ->
446441 clientSecret?.let { password ->
447442 if (! username.isEmpty() && ! password.isEmpty()) {
@@ -452,6 +447,11 @@ private constructor(
452447 }
453448 }
454449 }
450+ accessToken?.let {
451+ if (! it.isEmpty()) {
452+ headers.put(" Authorization" , " Bearer $it " )
453+ }
454+ }
455455 headers.replaceAll(this .headers.build())
456456 queryParams.replaceAll(this .queryParams.build())
457457
You can’t perform that action at this time.
0 commit comments