forked from baron/baron-sso
하드코딩 변수 관리
This commit is contained in:
@@ -222,9 +222,10 @@ class _LoginScreenState extends ConsumerState<LoginScreen>
|
||||
}
|
||||
|
||||
// 1. Init via Descope SDK
|
||||
final frontendUrl = dotenv.env['FRONTEND_URL'] ?? 'http://ssologin.hmac.kr';
|
||||
final signUpOrInResponse = await Descope.enchantedLink.signUpOrIn(
|
||||
loginId: loginId,
|
||||
redirectUrl: "http://ssologin.hmac.kr/auth/callback",
|
||||
redirectUrl: "$frontendUrl/auth/callback",
|
||||
);
|
||||
|
||||
if (mounted) {
|
||||
|
||||
Reference in New Issue
Block a user