Something went wrong. Try again.
A barebones implementation of an atproto PDS in PHP and Slim Framework 4.
pds php atproto
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243<?php
declare(strict_types=1);
namespace App\Domain\OAuth;
use JsonSerializable;
/** * Records used refresh tokens for replay prevention. * Maps to the `used_refresh_token` table. */class UsedRefreshToken implements JsonSerializable{ public function __construct( private readonly int $tokenId, private readonly string $refreshToken, ) { }
public function getTokenId(): int { return $this->tokenId; }
public function getRefreshToken(): string { return $this->refreshToken; }
/** * @return array<string, mixed> */ #[\ReturnTypeWillChange] public function jsonSerialize(): array { return [ 'tokenId' => $this->tokenId, 'refreshToken' => $this->refreshToken, ]; }}