toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
users-service
/
piperkt.services.users.infrastructure.implementation
/
Services
/
AuthServiceImpl
Auth
Service
Impl
@
Singleton
class
AuthServiceImpl
(
userRepository
:
UserRepository
,
userEventPublisher
:
UserEventPublisher
)
:
AuthService
Members
Constructors
Auth
Service
Impl
Link copied to clipboard
constructor
(
userRepository
:
UserRepository
,
userEventPublisher
:
UserEventPublisher
)
Functions
delete
Link copied to clipboard
fun
delete
(
username
:
String
)
get
User
By
Refresh
Token
Link copied to clipboard
fun
getUserByRefreshToken
(
refreshToken
:
String
)
:
User
login
Link copied to clipboard
fun
login
(
username
:
String
,
password
:
String
)
:
User
register
Link copied to clipboard
fun
register
(
username
:
String
,
password
:
String
,
email
:
String
?
=
null
,
description
:
String
?
=
null
,
photo
:
String
?
=
null
)
:
User
save
Refresh
Token
Link copied to clipboard
fun
saveRefreshToken
(
username
:
String
,
refreshToken
:
String
)
:
User