forked from baron/baron-sso
하드코딩 변수 관리
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:http/http.dart' as http;
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
|
||||
class AuditService {
|
||||
static const String _baseUrl = 'https://ssologin.hmac.kr';
|
||||
static String get _baseUrl => dotenv.env['BACKEND_URL'] ?? 'https://ssologin.hmac.kr';
|
||||
|
||||
static Future<void> logEvent({
|
||||
required String userId,
|
||||
|
||||
@@ -3,8 +3,7 @@ import 'package:http/http.dart' as http;
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
|
||||
class AuthProxyService {
|
||||
// HARDCODED URL
|
||||
static const String _baseUrl = 'https://ssologin.hmac.kr';
|
||||
static String get _baseUrl => dotenv.env['BACKEND_URL'] ?? 'https://ssologin.hmac.kr';
|
||||
|
||||
static Future<Map<String, dynamic>> initEnchantedLink(String loginId, {String? method}) async {
|
||||
final url = Uri.parse('$_baseUrl/api/v1/auth/enchanted-link/init');
|
||||
|
||||
Reference in New Issue
Block a user