authenticate

abstract fun authenticate(email: String, password: String): String?

Authenticates a user based on the provided username and password.

Return

a token if authentication is successful

Parameters

email

the email of the user

password

the password of the user