Skip to content

Commit d16d49e

Browse files
committed
minor: fix bug in Flex Auth
1 parent fcb0841 commit d16d49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/core/axios/getHeaders.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function getHeaders(options: ApiRequestOptions, config: OpenAPIConfig2, fo
1717
headers['Authorization'] = `Flex ${accountSid}:${token}`;
1818
}
1919

20-
if (isStringWithValue(token)) {
20+
if (!isStringWithValue(accountSid) && isStringWithValue(token)) {
2121
headers['Authorization'] = `Bearer ${token}`;
2222
}
2323

0 commit comments

Comments
 (0)