0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/demo-app/src/Callback.tsx

22 lines
371 B
TypeScript
Raw Normal View History

import { useHandleSignInCallback } from '@logto/react';
const Callback = () => {
const { error } = useHandleSignInCallback(() => {
window.location.assign('/demo-app');
});
if (error) {
return (
<div>
Error Occurred:
<br />
{error.message}
</div>
);
}
return <div>Loading...</div>;
};
export default Callback;