←back to thread

560 points bearsyankees | 2 comments | | HN request time: 0.501s | source
Show context
blantonl ◴[] No.43965416[source]
Returning the OTP in the request API response is wild. Like why?
replies(6): >>43965452 #>>43965527 #>>43965664 #>>43965678 #>>43965989 #>>43967689 #
1. hectormalot ◴[] No.43965664[source]
One reason I could think of is that they may return the database (or cache, or something else) response after generating and storing the OTP. Quick POCs/MVPs often use their storage models for API responses to save time, and then it is an easy oversight...
replies(1): >>43968636 #
2. oulu2006 ◴[] No.43968636[source]
that's my first thought at as well - like a basic CRUD operation that returns the row that was created as a response.