fix: verify-only magic link approval flow
This commit is contained in:
1 parent
9d1fe0fb1f
commit
7e662c9878
5 files changed
+99
-13
No files matched your search
@@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user