kustomer-client
Preparing search index...
KustomerApi
getCurrentUser
Function getCurrentUser
getCurrentUser
<
ThrowOnError
extends
boolean
=
true
>
(
options
:
Options
<
GetCurrentUserData
,
ThrowOnError
>
,
)
:
RequestResult
<
{
data
:
{
attributes
:
{
avatarUrl
:
string
;
createdAt
:
string
;
displayName
:
null
|
string
;
email
:
string
;
emailVerifiedAt
:
string
;
mobile
:
null
|
string
;
name
:
string
;
password
:
{
allowNew
:
boolean
;
forceNew
:
boolean
;
updatedAt
:
string
}
;
roles
:
string
[]
;
updatedAt
:
string
;
userType
:
string
;
}
;
id
:
string
;
links
:
{
self
:
string
}
;
relationships
:
{
org
:
{
data
:
{
id
:
string
;
type
:
string
}
;
links
:
{
self
:
string
}
}
;
}
;
type
:
string
;
}
;
}
,
unknown
,
ThrowOnError
,
>
Get Current User Retrieves the current user.
Type Parameters
ThrowOnError
extends
boolean
=
true
Parameters
options
:
Options
<
GetCurrentUserData
,
ThrowOnError
>
Returns
RequestResult
<
{
data
:
{
attributes
:
{
avatarUrl
:
string
;
createdAt
:
string
;
displayName
:
null
|
string
;
email
:
string
;
emailVerifiedAt
:
string
;
mobile
:
null
|
string
;
name
:
string
;
password
:
{
allowNew
:
boolean
;
forceNew
:
boolean
;
updatedAt
:
string
}
;
roles
:
string
[]
;
updatedAt
:
string
;
userType
:
string
;
}
;
id
:
string
;
links
:
{
self
:
string
}
;
relationships
:
{
org
:
{
data
:
{
id
:
string
;
type
:
string
}
;
links
:
{
self
:
string
}
}
;
}
;
type
:
string
;
}
;
}
,
unknown
,
ThrowOnError
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
kustomer-client
Loading...
Get Current User Retrieves the current user.