nuxt-community / adonuxt-template

[Deprecated] Starter template for Nuxt.js with AdonisJS.
451 stars 61 forks source link

Authetication on nuxtjs not working #113

Closed Geowan closed 6 years ago

Geowan commented 6 years ago

Am trying to authenticate with adonixjs jwt like this

   const user = await User.query()
        .where('email', email)
        .first()
   let passwordVerified = await Hash.verify( password,user.password)
    console.log(passwordVerified) //this is always false

The above always returns false. I have also noted the hash.js file is missing. How do i resolve this

I have also asked the question at stackoverflow at this link

This question is available on Nuxt community (#c91)
ghost commented 6 years ago

This issue as been imported as question since it does not respect adonuxt-template issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/adonuxt-template/issues/c91.

Geowan commented 6 years ago

why is this closed yet hashing fails?

woodgates commented 6 years ago

Hi the problem are the sessions. Session info doesnt persist.