diff --git a/client/coral-auth-callback/src/index.js b/client/coral-auth-callback/src/index.js
new file mode 100644
index 000000000..b7f3ed226
--- /dev/null
+++ b/client/coral-auth-callback/src/index.js
@@ -0,0 +1,14 @@
+document.addEventListener('DOMContentLoaded', () => {
+ // Get the auth element and parse it as JSON by decoding it.
+ const auth = document.getElementById('auth');
+ const doc = document.implementation.createHTMLDocument('');
+ doc.body.innerHTML = auth.innerText;
+
+ // Set the item in localStorage.
+ localStorage.setItem('auth', doc.body.textContent);
+
+ // Close the window.
+ setTimeout(() => {
+ window.close();
+ }, 50);
+});
diff --git a/public/javascripts/admin.js b/public/javascripts/admin.js
deleted file mode 100644
index 2c8b7c42a..000000000
--- a/public/javascripts/admin.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function showError(error) {
- try {
- let err = JSON.parse(error);
- $('.error-console').text(err.message).addClass('active');
- } catch (err) {
- $('.error-console').text(error).addClass('active');
- }
-}
diff --git a/public/javascripts/auth-callback.js b/public/javascripts/auth-callback.js
deleted file mode 100644
index f91f4d743..000000000
--- a/public/javascripts/auth-callback.js
+++ /dev/null
@@ -1,4 +0,0 @@
-document.addEventListener('DOMContentLoaded', function(event) {
- localStorage.setItem('auth', document.getElementById('auth').innerText);
- setTimeout(function() { window.close(); }, 50);
-});
\ No newline at end of file
diff --git a/views/admin/confirm-email.ejs b/views/admin/confirm-email.ejs
index 0bc54990b..f8f6c62f2 100644
--- a/views/admin/confirm-email.ejs
+++ b/views/admin/confirm-email.ejs
@@ -20,9 +20,17 @@
-
-
-
+