Update otp_auth.c

create a pseudo structure of auth function