Closed phof closed 1 year ago
It allows the tokenField to be part of the URL path, i.e.:
tokenField
passport.use( new MagicLinkStrategy( { secret: 'some-secret', userFields: ['email'], tokenField: 'accessToken', }, (req, user, token) => { // sendToken }, (user) => { // verifyUser } ) )
...
app.get( '/auth/:accessToken', passport.authenticate('magiclink', { action: 'acceptToken' }), (req, res) => res.redirect('/') )
@vinialbano, thoughts?
It allows the
tokenField
to be part of the URL path, i.e.:...
@vinialbano, thoughts?