1
0
forked from baron/baron-sso

fix: verify-only magic link approval flow

This commit is contained in:
Lectom C Han
2026-02-02 12:13:59 +09:00
parent 9d1fe0fb1f
commit 7e662c9878
5 changed files with 99 additions and 13 deletions

View File

@@ -125,7 +125,7 @@ class AuthProxyService {
throw Exception('Polling failed: ${response.body}');
}
static Future<Map<String, dynamic>> verifyMagicLink(String token) async {
static Future<Map<String, dynamic>> verifyMagicLink(String token, {bool verifyOnly = false}) async {
final url = Uri.parse('$_baseUrl/api/v1/auth/magic-link/verify');
final response = await http.post(
@@ -133,6 +133,7 @@ class AuthProxyService {
headers: {'Content-Type': 'application/json'},
body: jsonEncode({
'token': token,
'verifyOnly': verifyOnly,
}),
);