mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
8 lines
221 B
JavaScript
8 lines
221 B
JavaScript
export default function addPublicAuthTokenHeader(config, publicAuthToken) {
|
|
if (!config.headers) {
|
|
config.headers = {}
|
|
}
|
|
config.headers['Baserow-View-Authorization'] = `JWT ${publicAuthToken}`
|
|
return config
|
|
}
|