forked from baron/baron-sso
style(userfront): format flutter files to satisfy CI
This commit is contained in:
@@ -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