Commit 7d57980a authored by Aral Balkan's avatar Aral Balkan
Browse files

Make private socket (token) request succeed during dev and build

parent 9b20a1e6
......@@ -9,7 +9,8 @@ nacl.sealedBox = sealedBox
export async function authenticate (passphrase) {
// Get the encrypted private socket path fragment.
const privateSocketResponse = await fetch('/private-socket')
const privateSocketURL = `https://${window.location.hostname}/private-socket`
const privateSocketResponse = await fetch(privateSocketURL)
const privateSocket = await privateSocketResponse.json()
const encryptedPrivateSocketPathFragment = privateSocket.encryptedPrivateSocketPathFragment
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