retrieve User For Current Session
abstract suspend fun retrieveUserForCurrentSession(updateSession: Boolean = false): UserInfo(source)
Retrieves the current user with the current session
Parameters
update Session
Whether to update sessionStatus with the updated user, if sessionStatus is SessionStatus.Authenticated
Throws
Rest Exception
or one of its subclasses if receiving an error response. If the error response contains a error code, an AuthRestException will be thrown which can be used to easier identify the problem.
Http Request Timeout Exception
if the request timed out
Http Request Exception
on network related issues