You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to parse a cookie in the async callback. Can we please get the request object as an input parameter like so:
authenticator.use(
new EmailLinkStrategy(
{ sendEmail, secret: `${process.env.JWT_SECRET}`, callbackURL: '/api/auth/email-link/callback' },
async ({ **request**, email, magicLinkVerify }) => {
// now you can do something with the request object, e.g. parsing cookies
return await magicLink({ email, magicLinkVerify, ref: null })
},
),
'email-link',
)
This would align this lib the the Github and Google strategy, where the reuqets object is present. This will unlock also other use cases.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to parse a cookie in the async callback. Can we please get the request object as an input parameter like so:
This would align this lib the the Github and Google strategy, where the reuqets object is present. This will unlock also other use cases.
Beta Was this translation helpful? Give feedback.
All reactions