chemokita13 / beReal-api

A not official BeReal rest API in wich you can get all posts info, comment, upload a post...
https://berealapi.fly.dev
78 stars 5 forks source link

/login/send-code returns 201 although BeReal returns 400 #41

Closed basti394 closed 4 months ago

basti394 commented 6 months ago

Apparently I tried to login too many times. So BeReal returns 400 as error, but your API returns 201. This is the JSON returned by your API: {"status":201,"message":"OTP sent","data":{"otpSession":{"error":{"code":400,"message":"TOO_MANY_ATTEMPTS_TRY_LATER","errors":[{"message":"TOO_MANY_ATTEMPTS_TRY_LATER","domain":"global","reason":"invalid"}]}}}}

y4aniv commented 4 months ago

I am making a patch that I will submit.