change in inner struct to value instead of pointer
update with chaneg in main auth package