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;

没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则