Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ NEXT_PUBLIC_APP_NAME=GhostClass

# ⚠️ App version displayed in footer and health checks
# 🔨 Build-time (Infisical `/build-time` folder)
NEXT_PUBLIC_APP_VERSION=4.7.1
NEXT_PUBLIC_APP_VERSION=4.7.2

# ⚠️ Your production domain WITHOUT https://
# All URL-based variables are derived from this.
Expand Down Expand Up @@ -379,7 +379,7 @@ REQUEST_SIGNATURE_MAX_AGE=600

# ⚠️ Minimum supported app version required to bypass forced update
# 🚀 Runtime (Infisical `/runtime` folder → Server Env Var)
MIN_APP_VERSION=4.7.1
MIN_APP_VERSION=4.7.2

# ℹ️ Enforce Firebase App Check for all mobile clients in production
# Valid: "true", "false" (default: false in dev, true recommended in prod)
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/config/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AppConfig {

/// Current application version
static String get appVersion =>
const String.fromEnvironment('APP_VERSION', defaultValue: '4.7.1');
const String.fromEnvironment('APP_VERSION', defaultValue: '4.7.2');

/// Commit SHA injected by CI for release builds.
static String get appCommitSha =>
Expand Down
2 changes: 2 additions & 0 deletions mobile/lib/services/dio_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class DioService {
const errorMsg =
'App Check token is empty - verify Firebase activation';
options.extra['appCheckError'] = errorMsg;
options.headers['X-Firebase-AppCheck'] = 'unverified';
AppLogger.w('DioService: $errorMsg (continuing in fail-open mode)');
}
} on Object catch (e) {
Expand All @@ -236,6 +237,7 @@ class DioService {
);
options.extra['appCheckError'] = e.toString();
options.extra['appCheckTransient'] = _isTransientAppCheckFailure(e);
options.headers['X-Firebase-AppCheck'] = 'unverified';
}
}

Expand Down
2 changes: 1 addition & 1 deletion mobile/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 4.7.1+1
version: 4.7.2+1
environment:
sdk: ^3.11.4

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ghostclass",
"version": "4.7.1",
"version": "4.7.2",
"private": true,
"engines": {
"node": ">=22.12.0",
Expand Down
2 changes: 1 addition & 1 deletion public/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ openapi: 3.1.0

info:
title: GhostClass API
version: 4.7.1
version: 4.7.2
description: |
**GhostClass API** provides endpoints for authentication, profile synchronization,
attendance integrations with EzyGo, telemetry, and build provenance.
Expand Down
3 changes: 2 additions & 1 deletion src/app/api/auth/save-token/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ const handler = async (
current_year: syncRes?.academic?.current_year ?? info.current_year,
};

if (authType !== "app-check") {
const isMobileClient = isAppCheck || !!fcm_token;
if (!isMobileClient) {
await setAuthCookie(token);

return NextResponse.json(response);
Expand Down
Loading