SUBJECT TO CHANGE: simplified setting metadata on auth messages
functions for messages with metadata