find User By Email

@Query(value = ""SELECT * FROM " + USERS_KEY + " WHERE " + EMAIL_KEY + "=:" + EMAIL_KEY", nativeQuery = true )
abstract fun findUserByEmail(@Param(value = "email") email: String): T

Method to execute the query to find a EquinoxUser by email field

Return

the user, if exists, as EquinoxUser

Parameters

email

: the email to find the user