1
0
forked from baron/baron-sso

대시보드 qr 페이지

This commit is contained in:
2026-01-19 15:09:07 +09:00
parent ebfd60f81a
commit 27b8ff2ac1
11 changed files with 338 additions and 21 deletions

View File

@@ -48,7 +48,7 @@ class AuthProxyService {
}
}
static Future<void> verifyMagicLink(String token) async {
static Future<Map<String, dynamic>> verifyMagicLink(String token) async {
final url = Uri.parse('$_baseUrl/api/v1/auth/magic-link/verify');
final response = await http.post(
@@ -59,7 +59,9 @@ class AuthProxyService {
}),
);
if (response.statusCode != 200) {
if (response.statusCode == 200) {
return jsonDecode(response.body);
} else {
throw Exception('Verification failed: ${response.body}');
}
}