Write auth prototype