vinialbano / passport-magic-link

Magic Link authentication for Passport JS
MIT License
60 stars 9 forks source link

allowPost not documented #3

Closed sylvainlap closed 5 years ago

sylvainlap commented 5 years ago

Hi,

Your README suggest to use a POST route to create a token, but this does not work out of the box. After debugging your code, I saw the allowPost option, that is undefied by default.

You should set it to true by default, or at least document it.

Thanks ! Sylvain

vinialbano commented 5 years ago

Thanks @sylvainlap I have updated the source code and removed the allowPost parameter, accepting the req.body field by default.