feat: migrate authentication to Logto and clear PWA cache
This commit is contained in:
16
src/client/pages/Callback.tsx
Normal file
16
src/client/pages/Callback.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user