Making custom protocol for auth responses