Who Am I API
WhoAmIHandle exposes Keycloak's admin who-am-i endpoint.
Access
const whoAmI = kc.whoAmI('master');
Usage
const me = await kc.whoAmI('master').get();
const meInDemoRealm = await kc.whoAmI('master', 'demo').get();
Constructor Semantics
kc.whoAmI(currentRealm, realmName?)
currentRealm: the realm the admin API request is executed againstrealmName: optional target realm for the lookup
Methods
get()
Returns the WhoAmIRepresentation produced by Keycloak.