Skip to content
Discussion options

You must be logged in to vote

Well, you can fetch the user yourself and then use auth.login method. For example:

const user = await User
  .query()
  .where('email', email)
  .where('other', 'constraints')
  .firstOrFail()


const isValid = await Hash.verify(user.password, password)
if(isValid) {
  await auth.login(user)
}

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@Mzzay
Comment options

@Mzzay
Comment options

@thetutlage
Comment options

@Mzzay
Comment options

@Mzzay
Comment options

Answer selected by Mzzay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants