Skip to content

Commit 347b347

Browse files
committed
refactor(api): use camelCase for isDashboardLogin in verify-code
1 parent 638c7c4 commit 347b347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/api/v1/auth/verify-code.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:ht_shared/ht_shared.dart';
99
///
1010
/// Verifies the provided email and code, completes the sign-in/sign-up,
1111
/// and returns the authenticated User object along with an auth token. It
12-
/// supports a context-aware flow by checking for an `is_dashboard_login`
12+
/// supports a context-aware flow by checking for an `isDashboardLogin`
1313
/// flag in the request body, which dictates whether to perform a strict
1414
/// login-only check or a standard sign-in/sign-up.
1515
Future<Response> onRequest(RequestContext context) async {
@@ -67,7 +67,7 @@ Future<Response> onRequest(RequestContext context) async {
6767
}
6868

6969
// Check for the optional dashboard login flag. Default to false.
70-
final isDashboardLogin = (body['is_dashboard_login'] as bool?) ?? false;
70+
final isDashboardLogin = (body['isDashboardLogin'] as bool?) ?? false;
7171

7272
try {
7373
// Call the AuthService to handle the verification and sign-in logic

0 commit comments

Comments
 (0)