diff options
Diffstat (limited to 'src/js/app.js')
| -rw-r--r-- | src/js/app.js | 3 |
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 :(")) |
