feat: migrate authentication to Logto and clear PWA cache

This commit is contained in:
2026-03-19 15:51:09 +00:00
parent 0e858b87c2
commit 778d6d18ee
7 changed files with 217 additions and 98 deletions

View File

@@ -0,0 +1,16 @@
import { useHandleSignInCallback } from '@logto/react';
import { useNavigate } from 'react-router-dom';
export const Callback = () => {
const navigate = useNavigate();
const { isLoading } = useHandleSignInCallback(() => {
// Done, navigate to home
navigate('/');
});
return (
<div className="flex h-screen items-center justify-center">
{isLoading ? 'Redirecionando...' : 'Concluído'}
</div>
);
};