fix(auth): redirect telegram connect to success page
This commit is contained in:
@@ -207,8 +207,8 @@ app.post('/bot/messenger-login', async (req, res) => {
|
|||||||
'http://localhost:3000'
|
'http://localhost:3000'
|
||||||
).replace(/\/$/, '');
|
).replace(/\/$/, '');
|
||||||
const nextPath = startSession.redirectPath || (
|
const nextPath = startSession.redirectPath || (
|
||||||
startSession.userId
|
channel === 'TELEGRAM'
|
||||||
? `/profile/notifications?status=success&connected=${channel.toLowerCase()}`
|
? `/profile/notifications/success?connected=${channel.toLowerCase()}`
|
||||||
: ''
|
: ''
|
||||||
);
|
);
|
||||||
const loginQuery = new URLSearchParams({
|
const loginQuery = new URLSearchParams({
|
||||||
|
|||||||
Reference in New Issue
Block a user