bearerToken(), new Key($this->getOauthPublicKey(), 'RS256') ); } catch (Throwable $exception) { throw (new AuthenticationException()); } } private function getOauthPublicKey(): bool|string { return AnikeenId::getMode() === 'staging' ? file_get_contents(dirname(__DIR__, 3) . '/oauth-public.staging.key') : file_get_contents(dirname(__DIR__, 3) . '/oauth-public.key'); } }