got passport-custom working with telegram
instead of writing my own strategy, i used passport-custom and implemented my logic. It now works.
Previously, i used the following options:
1- created my own strategy based on passport-strategy by following steps of https://github.com/mxstbr/passport-magic-login
2- used these packages: passport-telegram-login, passport-telegram-official
Unfortunately these options didn't work because of how blitz handles passport.
A demo of how i did it can be found at https://codesandbox.io/s/awesome-pike-29kiz
Note: I haven't yet updated /integrations/custom/strategy.ts to be in sync with what i have locally, so nothing works there yet.
Previously, i used the following options:
1- created my own strategy based on passport-strategy by following steps of https://github.com/mxstbr/passport-magic-login
2- used these packages: passport-telegram-login, passport-telegram-official
Unfortunately these options didn't work because of how blitz handles passport.
A demo of how i did it can be found at https://codesandbox.io/s/awesome-pike-29kiz
Note: I haven't yet updated /integrations/custom/strategy.ts to be in sync with what i have locally, so nothing works there yet.