Spaces:
Running
Running
axeronis commited on
Commit ·
4d757a2
1
Parent(s): 2cd68f8
fix: use correct localStorage key auth_token
Browse files
frontend/app/channels/page.tsx
CHANGED
|
@@ -334,7 +334,7 @@ function WhatsAppConnectModal({ onClose, onSuccess }: { onClose: () => void, onS
|
|
| 334 |
const handleOAuthConnect = () => {
|
| 335 |
// Redirect to backend OAuth endpoint with auth token
|
| 336 |
const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'https://api.microfunnel.online'
|
| 337 |
-
const token = localStorage.getItem('
|
| 338 |
if (!token) {
|
| 339 |
toast.error('Ошибка', 'Требуется авторизация')
|
| 340 |
return
|
|
|
|
| 334 |
const handleOAuthConnect = () => {
|
| 335 |
// Redirect to backend OAuth endpoint with auth token
|
| 336 |
const apiUrl = process.env.NEXT_PUBLIC_API_URL || 'https://api.microfunnel.online'
|
| 337 |
+
const token = localStorage.getItem('auth_token')
|
| 338 |
if (!token) {
|
| 339 |
toast.error('Ошибка', 'Требуется авторизация')
|
| 340 |
return
|