Added new auth code generation