aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/app.js b/src/js/app.js
index 951bcf3..bdf5699 100644
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -1,11 +1,12 @@
// JS Goes here - ES6 supported
-import gotrue from "gotrue-js";
+import GoTrue from "gotrue-js";
if (document.location.hash) {
const m = document.location.hash.match(/invite_token=([^&]+)/);
if (m) {
document.location.hash = "";
const pw = prompt("Please pick a password")
+ const gotrue = new GoTrue();
gotrue.acceptInvite(m[1], pw)
.then(() => { document.location.href = "/admin/"; })
.catch((err) => alert("Failed to verify invite token :("))