8aa4997
1
2
3
4
5
6
export function createBasic(username: string, password: string) { const userInfo = `${username}:${password}`; return `Basic ${btoa(userInfo)}`; }