public static function createNewAuthorizationCode(
        int $ttl,
        string $redirectUri = null,
        TokenOwnerInterface $owner = null,
        Client $client = null,
        $scopes = null
    ): AuthorizationCode {
        $token = static::createNew($ttl, $owner, $client, $scopes);

        $token->redirectUri = $redirectUri ?? '';

        return $token;
    }