Commit 1d7a8893 authored by Aral Balkan's avatar Aral Balkan
Browse files

Remove hardcoding of the production hostname

(Now retrieved from the server.)
parent 7d57980a
......@@ -16,9 +16,14 @@ export async function authenticate (passphrase) {
const productionHostnameResponse = await fetch(`https://${window.location.hostname}/hostname`)
const productionHostname = (await productionHostnameResponse.json()).hostname
console.log('Production hostname: ', productionHostname)
// Regenerate the private key.
// Note: hostname is hardcoded in this example!
const blake2bHashOfHostnameAsSalt = blake.blake2bHex('')
const blake2bHashOfHostnameAsSalt = blake.blake2bHex(productionHostname)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment