Use proper amdefine require
Merge pull request #51 from korczis/auth

Use proper amdefine require