decode_state_hash

This commit is contained in:
Ishaan Jaffer 2025-09-27 14:26:31 -07:00
parent 5d7694293f
commit 1f24e92c53

View file

@ -1,5 +1,5 @@
import json
from typing import Optional
from typing import Optional, Tuple
from urllib.parse import urlencode, urlparse, urlunparse
from fastapi import APIRouter, Form, HTTPException, Request
@ -36,7 +36,7 @@ def encode_state_with_base_url(base_url: str, original_state: str) -> str:
return encrypted_state
def decode_state_hash(encrypted_state: str) -> tuple[str, str]:
def decode_state_hash(encrypted_state: str) -> Tuple[str, str]:
"""
Decode an encrypted state to retrieve the base_url and original state.