Skip to content

Commit

Permalink
new endpoint mm-auth to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
99oblivius committed Aug 8, 2024
1 parent dbc2560 commit 87705f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generate_auth_url(cache, guild_id: int, user_id: int, platform: str) -> str:
expires_at = datetime.now(timezone.utc) + timedelta(minutes=5)
cache.hmset(token, {'guild_id': guild_id, 'discord_uuid': user_id, 'expires_at': expires_at.isoformat(), 'platform': platform})
cache.expire(token, 300)
return f"https://api.valorsleague.org/auth/{platform}/{token}"
return f"https://api.valorsleague.org/mm-auth/{platform}/{token}"

def abandon_cooldown(count: int, last_abandon: datetime | None=None) -> int:
if last_abandon is None:
Expand Down

0 comments on commit 87705f5

Please sign in to comment.