mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
21 lines
371 B
TypeScript
21 lines
371 B
TypeScript
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;
|