Skip to content

Commit fe6850e

Browse files
committed
feat: allow http client configuration
1 parent 7ad6a36 commit fe6850e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/create-client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import axios from 'axios'
22

3-
export const clientConstructor = ({ token }) => {
3+
export const clientConstructor = ({ token, ...options }) => {
44
return axios.create({
55
baseURL: 'https://api.typeform.com',
66
headers: {
77
Authorization: `bearer ${token}`
8-
}
8+
},
9+
...options
910
})
1011
}

0 commit comments

Comments
 (0)