code | type | title | description |
---|---|---|---|
true |
page |
GetCurrentUser |
Returns the profile object for the user linked to the `JSON Web Token`. |
Returns information about the user currently logged with the SDK instance.
:::: tabs ::: tab Java
public CompletableFuture<Map<String, Object>> getCurrentUser()
throws NotConnectedException, InternalException
A Map representing the User.
Property | Type | Description |
---|---|---|
_id |
String |
Representing the current user kuid |
strategies |
Array |
Available authentication strategies for that user |
_source |
Map |
User information |
<<< ./snippets/get-current-user-java.java
::: ::: tab Kotlin
fun getCurrentUser(): CompletableFuture<Map<String, Any?>>
A Map representing the User.
Property | Type | Description |
---|---|---|
_id |
String |
Representing the current user kuid |
strategies |
Array |
Available authentication strategies for that user |
_source |
Map |
User information |
<<< ./snippets/get-current-user-kotlin.kt
::: ::::