Retrieves the user ID or throws an exception if the user is not authenticated.
The user ID as a String.
if the user is not authenticated.