AuthApi

interface AuthApi

Inheritors

Functions

Link copied to clipboard
abstract suspend fun login(email: String, password: String): LoginResponseDto
Link copied to clipboard
abstract suspend fun logout(refreshToken: String)

POST /auth/logout — revokes the refresh-token family server-side, so signing out on this device actually ends the session rather than just forgetting it locally.

Link copied to clipboard
abstract suspend fun me(): MeResponseDto
Link copied to clipboard
abstract suspend fun refresh(refreshToken: String): LoginResponseDto
Link copied to clipboard
abstract suspend fun register(email: String, password: String): LoginResponseDto
Link copied to clipboard
abstract suspend fun uploadImage(type: String, image: PickedImage)