SUBJECT TO CHANGE: changed return type of metadata on auth messages