mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 10:27:49 +00:00
fix: resolve telegram auth token expiration and clean up codebase
- Fix stale initData comparison in clearStaleSessionIfNeeded that destroyed valid refresh tokens on mobile WebView reopens - Restrict X-Telegram-Init-Data header to auth endpoints only - Close Mini App on auth retry to force fresh initData from Telegram - Merge Connection page error/not-configured states for better UX - Remove unnecessary comments across 40+ files (section dividers, restating comments, noise catch block comments) - Configure ESLint allowEmptyCatch to properly handle intentional empty catch blocks (62 warnings resolved)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import apiClient from './client';
|
||||
|
||||
// ============ Types ============
|
||||
|
||||
export interface ReleaseItem {
|
||||
tag_name: string;
|
||||
name: string;
|
||||
@@ -22,8 +20,6 @@ export interface ReleasesResponse {
|
||||
cabinet: ProjectReleasesInfo;
|
||||
}
|
||||
|
||||
// ============ API ============
|
||||
|
||||
export const adminUpdatesApi = {
|
||||
getReleases: async (): Promise<ReleasesResponse> => {
|
||||
const response = await apiClient.get('/cabinet/admin/updates/releases');
|
||||
|
||||
Reference in New Issue
Block a user