AuthService

interface AuthService

AuthService interface provides methods for authentication and authorization.

Inheritors

Functions

Link copied to clipboard
abstract fun authenticate(email: String, password: String): String?

Authenticates a user based on the provided username and password.

Link copied to clipboard
abstract fun authorize(token: String): Boolean

Authorizes a user based on the provided token.

Link copied to clipboard
abstract fun getEmailFromToken(token: String): String?

Extracts the email from a given token.