Auth plugin for frontend