Added some annotations to a custom authenticate code example