Write/read auth data.