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
ERRORS
Throws the following 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
RETURN VALUES
an IamUser instance describing the current user
EXAMPLES
None.