Rename product to OrbitWard

This commit is contained in:
Keith Smith
2026-05-26 21:24:54 -06:00
parent af72a6c563
commit 177bdcc8a7
41 changed files with 129 additions and 105 deletions
+2 -2
View File
@@ -20,12 +20,12 @@ def verify_password(plain_password: str, hashed_password: str) -> bool:
def create_access_token(subject: str) -> str:
expires_at = datetime.now(UTC) + timedelta(minutes=settings.access_token_expire_minutes)
payload = {"sub": subject, "exp": expires_at}
return jwt.encode(payload, settings.orbitalward_secret_key, algorithm=ALGORITHM)
return jwt.encode(payload, settings.orbitward_secret_key, algorithm=ALGORITHM)
def decode_access_token(token: str) -> str | None:
try:
payload = jwt.decode(token, settings.orbitalward_secret_key, algorithms=[ALGORITHM])
payload = jwt.decode(token, settings.orbitward_secret_key, algorithms=[ALGORITHM])
return payload.get("sub")
except JWTError:
return None