Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getTestAuthHeaders () {
const timestamp = new Date().toISOString()
return {
'auth-username': rootUser.email,
'auth-ts': timestamp,
'auth-salt': rootUser.salt,
'auth-token': crypto.sha512(rootUser.hash + rootUser.salt + timestamp, 'hex')
}
}