complete learn-auth-scratch with static map