After Login using aws-amplify hosted UI how to get accessToken?

0

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;

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions