style: move secrets import alongside other function-level imports

Group the secrets import with time and webbrowser at the top of
run_hermes_oauth_login_pure(), matching the existing pattern.
Drop the _secrets alias — no name conflict in this scope.
This commit is contained in:
JunghwanNA 2026-04-16 14:04:22 +09:00 committed by Teknium
parent fcd9011f8d
commit 345821b4a1

View file

@ -1060,12 +1060,12 @@ def _generate_pkce() -> tuple:
def run_hermes_oauth_login_pure() -> Optional[Dict[str, Any]]:
"""Run Hermes-native OAuth PKCE flow and return credential state."""
import secrets
import time
import webbrowser
verifier, challenge = _generate_pkce()
import secrets as _secrets
oauth_state = _secrets.token_urlsafe(32)
oauth_state = secrets.token_urlsafe(32)
params = {
"code": "true",