toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
users-service
/
piperkt.services.users.application
/
AuthService
Auth
Service
open
class
AuthService
(
userRepository
:
UserRepository
,
userEventPublisher
:
UserEventPublisher
)
Inheritors
AuthServiceImpl
Members
Constructors
Auth
Service
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