I\'m making an app where i was able to create the authentication flow using JWT, it goes like this:
User logs in with email and password -> server checks if the email