Refactored package mgm to auth