urembo-hub-api
Preparing search index...
auth/auth.controller
AuthController
Class AuthController
Index
Constructors
constructor
Methods
change
Password
forgot
Password
get
Profile
login
refresh
Token
register
resend
Verification
Email
reset
Password
verify
Email
Constructors
constructor
new
AuthController
(
authService
:
AuthService
)
:
AuthController
Parameters
authService
:
AuthService
Returns
AuthController
Methods
change
Password
changePassword
(
req
:
any
,
changePasswordDto
:
ChangePasswordDto
,
)
:
Promise
<
{
message
:
string
}
>
Parameters
req
:
any
changePasswordDto
:
ChangePasswordDto
Returns
Promise
<
{
message
:
string
}
>
forgot
Password
forgotPassword
(
forgotPasswordDto
:
ForgotPasswordDto
,
)
:
Promise
<
{
message
:
string
}
>
Parameters
forgotPasswordDto
:
ForgotPasswordDto
Returns
Promise
<
{
message
:
string
}
>
get
Profile
getProfile
(
req
:
any
,
)
:
Promise
<
{
avatarUrl
:
string
;
businessAddress
:
string
;
businessDescription
:
string
;
businessName
:
string
;
businessPhone
:
string
;
createdAt
:
Date
;
email
:
string
;
fullName
:
string
;
id
:
string
;
isSuspended
:
boolean
;
isVerified
:
boolean
;
onboardingStatus
:
onboarding_status
;
paymentAccountDetails
:
JsonValue
;
paymentAccountType
:
string
;
paymentDetailsVerified
:
boolean
;
phone
:
string
;
role
:
user_role
;
suspendedAt
:
Date
;
suspendedBy
:
string
;
suspensionReason
:
string
;
updatedAt
:
Date
;
}
,
>
Parameters
req
:
any
Returns
Promise
<
{
avatarUrl
:
string
;
businessAddress
:
string
;
businessDescription
:
string
;
businessName
:
string
;
businessPhone
:
string
;
createdAt
:
Date
;
email
:
string
;
fullName
:
string
;
id
:
string
;
isSuspended
:
boolean
;
isVerified
:
boolean
;
onboardingStatus
:
onboarding_status
;
paymentAccountDetails
:
JsonValue
;
paymentAccountType
:
string
;
paymentDetailsVerified
:
boolean
;
phone
:
string
;
role
:
user_role
;
suspendedAt
:
Date
;
suspendedBy
:
string
;
suspensionReason
:
string
;
updatedAt
:
Date
;
}
,
>
login
login
(
loginDto
:
LoginDto
,
)
:
Promise
<
{
access_token
:
string
;
user
:
{
businessName
:
any
;
email
:
any
;
fullName
:
any
;
id
:
any
;
isVerified
:
any
;
onboardingStatus
:
any
;
role
:
any
;
}
;
}
,
>
Parameters
loginDto
:
LoginDto
Returns
Promise
<
{
access_token
:
string
;
user
:
{
businessName
:
any
;
email
:
any
;
fullName
:
any
;
id
:
any
;
isVerified
:
any
;
onboardingStatus
:
any
;
role
:
any
;
}
;
}
,
>
refresh
Token
refreshToken
(
req
:
any
,
)
:
Promise
<
{
access_token
:
string
;
user
:
{
email
:
string
;
id
:
string
;
role
:
user_role
}
;
}
,
>
Parameters
req
:
any
Returns
Promise
<
{
access_token
:
string
;
user
:
{
email
:
string
;
id
:
string
;
role
:
user_role
}
;
}
,
>
register
register
(
registerDto
:
RegisterDto
,
)
:
Promise
<
{
access_token
:
string
;
user
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
isVerified
:
boolean
;
onboardingStatus
:
onboarding_status
;
role
:
user_role
;
}
;
}
,
>
Parameters
registerDto
:
RegisterDto
Returns
Promise
<
{
access_token
:
string
;
user
:
{
businessName
:
string
;
email
:
string
;
fullName
:
string
;
id
:
string
;
isVerified
:
boolean
;
onboardingStatus
:
onboarding_status
;
role
:
user_role
;
}
;
}
,
>
resend
Verification
Email
resendVerificationEmail
(
req
:
any
)
:
Promise
<
{
message
:
string
}
>
Parameters
req
:
any
Returns
Promise
<
{
message
:
string
}
>
reset
Password
resetPassword
(
resetPasswordDto
:
ResetPasswordDto
)
:
Promise
<
{
message
:
string
}
>
Parameters
resetPasswordDto
:
ResetPasswordDto
Returns
Promise
<
{
message
:
string
}
>
verify
Email
verifyEmail
(
verifyEmailDto
:
VerifyEmailDto
)
:
Promise
<
{
message
:
string
}
>
Parameters
verifyEmailDto
:
VerifyEmailDto
Returns
Promise
<
{
message
:
string
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
change
Password
forgot
Password
get
Profile
login
refresh
Token
register
resend
Verification
Email
reset
Password
verify
Email
urembo-hub-api
Loading...