@Joykiller said in Proper way to return res.redirect('')?:
@julian said in Proper way to return res.redirect('')?:
Callbacks don't work all that nicely with async functions... I think stripe.subscribe is called with await and returns undefined before the isValueID method is called and returns.
I added asyncs to test, removed them same issue with headers response from res.redirect. Oh i see what this plugin does, I guess i could write it to the session and then call it from there. Argh im at a loss that didnt work either still same header issue. seems like even the other values prob would do the same as mine I duno if the way it was coded from base was correct.
Nevermind I got it working with writing to the session first, had an error on previous attempt.
Thanks for the help.