Files

18 lines
511 B
PHP

<?php
declare(strict_types=1);
require __DIR__ . '/_common.php';
if ($_SERVER['REQUEST_METHOD'] !== 'GET') {
json_response(['ok' => false, 'error' => 'Use GET'], 405);
}
$o = read_store()['oauth'] ?? [];
json_response([
'ok' => true,
'facebookAppId' => (string)($o['facebookAppId'] ?? ''),
'facebookRedirectUri' => (string)($o['facebookRedirectUri'] ?? ''),
'googleClientId' => (string)($o['googleClientId'] ?? ''),
'googleRedirectUri' => (string)($o['googleRedirectUri'] ?? ''),
]);