Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.56 KB

File metadata and controls

60 lines (41 loc) · 1.56 KB
code type title description
true
page
GetCurrentUser
Returns the profile object for the user linked to the `JSON Web Token`.

GetCurrentUserAsync

Returns information about the user currently logged with the SDK instance.

:::: tabs ::: tab Java

Arguments

public CompletableFuture<Map<String, Object>> getCurrentUser()
  throws NotConnectedException, InternalException

Return

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

Usage

<<< ./snippets/get-current-user-java.java

::: ::: tab Kotlin

Arguments

fun getCurrentUser(): CompletableFuture<Map<String, Any?>>

Return

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

Usage

<<< ./snippets/get-current-user-kotlin.kt

::: ::::