IamUtil.getCurrentUser()
DESCRIPTION
Get details about the user that has opened the current connection to the device.
DECLARATION
static public func getCurrentUser(connection: Connection) throws -> IamUser
PARAMETERS
connection:
- An established connection to the device
THROWS ERRORS
USER_DOES_NOT_EXIST:
- if the current user is not paired with the device.
IAM_NOT_SUPPORTED:
- if Nabto Edge IAM is not supported by the device
RETURNS
an IamUser instance describing the current user