Spaces:
Running

axeronis commited on
Commit
4d757a2
·
1 Parent(s): 2cd68f8

fix: use correct localStorage key auth_token

Browse files
Files changed (1) hide show
  1. frontend/app/channels/page.tsx +1 -1
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('access_token')
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