I am implemented login functionality with aws-amplify, need to accessToken after login how to get accessToken after login.
import React, { useEffect } from 'react';
import { Authenticator } from '@aws-amplify/ui-react';
import '@aws-amplify/ui-react/styles.css';
export const AmplifyHostedUI: React.FC = () => {
const component = {
SignIn: {
Header() {
return <div className="flex text-xl font-bold pb-4">Log-In</div>;
},
},
};
return (
<div className="flex h-screen w-screen justify-center items-center">
<div className="flex h-fit w-fit">
<Authenticator hideSignUp components={component}></Authenticator>
</div>
</div>
);
};
export default AmplifyHostedUI;