fix(auth): redirect telegram connect to success page

This commit is contained in:
Ruslan Bakiev
2026-04-03 18:45:28 +07:00
parent 202c872396
commit d017d13943

View File

@@ -207,8 +207,8 @@ app.post('/bot/messenger-login', async (req, res) => {
'http://localhost:3000'
).replace(/\/$/, '');
const nextPath = startSession.redirectPath || (
startSession.userId
? `/profile/notifications?status=success&connected=${channel.toLowerCase()}`
channel === 'TELEGRAM'
? `/profile/notifications/success?connected=${channel.toLowerCase()}`
: ''
);
const loginQuery = new URLSearchParams({