Skip to content

Commit

Permalink
next release
Browse files Browse the repository at this point in the history
  • Loading branch information
quantuminformation committed Dec 24, 2019
1 parent 519714f commit 439578b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/stores/firebaseUserStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@ var firebaseConfig = {
firebase.initializeApp(firebaseConfig);
//firebase.default.analytics();

const url = 'https://svelte-netlify-identity.netlify.com/'
const goTrueInstance =
new GoTrue({
APIUrl: `${url}/.netlify/identity`,
setCookie: true,
})
//const user = firebase.auth().currentUser()

const user = firebase.auth().currentUser()

export const authUserStore = writable(goTrueUser);
//todo check user
export const authUserStore = writable(null);

//todo

Expand Down Expand Up @@ -100,6 +94,7 @@ export async function signin (email, password) {
export async function register (email, password) {
try {
let newUser = await firebase.auth().createUserWithEmailAndPassword(email, password)
newUser.user.sendEmailVerification()
console.log('registered ' + newUser)
} catch (e) {
alert(e.message)
Expand Down

0 comments on commit 439578b

Please sign in to comment.