Extract module with auth.js