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.
1234567891011121314151617181920212223242526272829303132333435<?php
declare(strict_types=1);
namespace App\Domain\OAuth;
interface OAuthTokenRepository{ /** * @throws OAuthTokenNotFoundException */ public function findByTokenId(string $tokenId): OAuthToken;
/** * @throws OAuthTokenNotFoundException */ public function findByCode(string $code): OAuthToken;
/** * @throws OAuthTokenNotFoundException */ public function findByRefreshToken(string $refreshToken): OAuthToken;
/** * @return OAuthToken[] */ public function findAllForDid(string $did): array;
public function save(OAuthToken $token): void;
public function deleteByTokenId(string $tokenId): void;
public function deleteAllForDid(string $did): void;}