Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map(v =>
Lens.fromNullableProp(key)
.set(v)(h)
)
.map(mode =>
Lens.fromNullableProp('mode')
.set(mode)(o)
);
const addToken = (t: string) => (h: Headers): DefaultHeaders =>
Lens.fromNullableProp('Authorization')
.set(`Bearer ${t}`)(h);