AuthService

open class AuthService(userRepository: UserRepository, userEventPublisher: UserEventPublisher)

Inheritors

Constructors

Link copied to clipboard
constructor(userRepository: UserRepository, userEventPublisher: UserEventPublisher)

Functions

Link copied to clipboard
fun delete(username: String)
Link copied to clipboard
fun getUserByRefreshToken(refreshToken: String): User
Link copied to clipboard
fun login(username: String, password: String): User
Link copied to clipboard
fun register(username: String, password: String, email: String? = null, description: String? = null, photo: String? = null): User
Link copied to clipboard
fun saveRefreshToken(username: String, refreshToken: String): User