Page 1 of 1

EMail OTP API endpoint documentation

Posted: Thu Jan 06, 2022 10:16 am
by moviuro
Hi,

I have a script that can download factorio, which I use to update the game on Linux. This script either uses:
  • the player's token file
  • interactively asks for login+password
When asking interactively for username+password this morning, the code that grabs a token failed because I had to input an email OTP.
https://gitlab.com/moviuro/factorio-dl/-/issues/2

(Downloads using the player's token file works great, no problem on that end)

Re: EMail OTP API endpoint documentation

Posted: Thu Jan 06, 2022 12:40 pm
by vinzenz
This endpoint doesn't support passing the email OTP at the moment, but it's on my todo list. Will also update the wiki docs.

Re: EMail OTP API endpoint documentation

Posted: Mon Mar 07, 2022 4:56 pm
by vinzenz
moviuro wrote:
Thu Jan 06, 2022 10:16 am
Hi,

I have a script that can download factorio, which I use to update the game on Linux. This script either uses:
  • the player's token file
  • interactively asks for login+password
When asking interactively for username+password this morning, the code that grabs a token failed because I had to input an email OTP.
https://gitlab.com/moviuro/factorio-dl/-/issues/2

(Downloads using the player's token file works great, no problem on that end)
I've updated the auth endpoint and wiki docs https://wiki.factorio.com/Web_authentication_API