change public app name for oauth
This commit is contained in:
@@ -5,6 +5,7 @@ import { useRouter } from 'next/navigation';
|
||||
import { Ban, CheckCircle2, ChevronRight, FileKey2, Loader2 } from 'lucide-react';
|
||||
import { useAuth } from '@/components/id/auth-provider';
|
||||
import { IdShell } from '@/components/id/shell';
|
||||
import { usePublicSettings } from '@/components/id/public-settings-provider';
|
||||
import { useToast } from '@/components/id/toast-provider';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog';
|
||||
@@ -29,6 +30,7 @@ function formatGrantedAt(value: string) {
|
||||
export default function DataConsentsPage() {
|
||||
const router = useRouter();
|
||||
const { user, token } = useAuth();
|
||||
const { projectName } = usePublicSettings();
|
||||
const { isReady, isPinLocked } = useRequireAuth();
|
||||
const { showToast } = useToast();
|
||||
const [consents, setConsents] = useState<OAuthUserConsent[]>([]);
|
||||
@@ -126,7 +128,7 @@ export default function DataConsentsPage() {
|
||||
Выданы {formatGrantedAt(selectedConsent.grantedAt)}
|
||||
</p>
|
||||
<div className="mt-4 rounded-2xl bg-[#f4f5f8] p-4">
|
||||
<p className="text-sm font-medium">API Lendry ID</p>
|
||||
<p className="text-sm font-medium">API {projectName}</p>
|
||||
<ul className="mt-3 space-y-2">
|
||||
{selectedConsent.scopes.map((scope) => (
|
||||
<li key={scope.slug} className="flex items-start gap-2 text-sm">
|
||||
|
||||
Reference in New Issue
Block a user