style(userfront): format flutter files to satisfy CI
This commit is contained in:
1 parent
797e6cc90a
commit
750776f0a0
3 files changed
+9
-7
No files matched your search
@@ -92,7 +92,10 @@ class AuthProxyService {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<Map<String, dynamic>> getMe({String? token, bool useCookie = true}) async {
|
||||
static Future<Map<String, dynamic>> getMe({
|
||||
String? token,
|
||||
bool useCookie = true,
|
||||
}) async {
|
||||
final url = Uri.parse('$_baseUrl/api/v1/user/me');
|
||||
final client = createHttpClient(withCredentials: useCookie);
|
||||
try {
|
||||
@@ -100,10 +103,7 @@ class AuthProxyService {
|
||||
if (!useCookie && token != null && token.isNotEmpty) {
|
||||
headers['Authorization'] = 'Bearer $token';
|
||||
}
|
||||
final response = await client.get(
|
||||
url,
|
||||
headers: headers,
|
||||
);
|
||||
final response = await client.get(url, headers: headers);
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
return jsonDecode(response.body);
|
||||
|
||||
Reference in new issue
Block a user