Username or email


#1

Hi

How can I connect with username or email?
Login with session

thanks!


#2

https://adonisjs.com/docs/4.1/sessions

May this be help you


#3

Hey @nikoola! :wave:

You got multiple options to do what you’re requesting.

  1. Do a database query that will fetch a record via username or email and then authenticate it using auth.login(user).
  2. Use the package Persona which is an opinionated user management service for AdonisJs