/**
* Home Component
* Landing page for unauthenticated users
*/
import React from 'react';
import { Link } from 'react-router-dom';
import { useAuth } from '../contexts/AuthContext';
import { Navigate } from 'react-router-dom';
export const Home: React.FC = () => {
const { isAuthenticated } = useAuth();
// If already authenticated, redirect to dashboard
if (isAuthenticated) {
return
Experience secure, decentralized authentication with ATProtocol OAuth 2.1
Proof Key for Code Exchange (PKCE) with S256 challenge method for secure authorization
Demonstrating Proof of Possession with ES256 cryptographic binding
PAR for enhanced security by pre-registering authorization requests
Create posts directly in your Personal Data Server using authenticated XRPC calls
Seamless token rotation with automatic refresh before expiry
This is a demonstration of ATProtocol OAuth 2.1 implementation.
Your data remains in your Personal Data Server at all times.