mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
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:
parent
fcd9011f8d
commit
345821b4a1
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue