I created a react application with aws authentication,
`import { Amplify } from “aws-amplify”;
import awsmobile from “../aws-exports”;
import { Authenticator, Flex } from “@aws-amplify/ui-react”
Amplify.configure(awsmobile)
const Login = () => {
return (
<code> <div>
<Authenticator>
{({ signOut, user }) => (
<div className="App">
<p onClick={() => { }}>
Hey {user.username}, welcome to my channel, with auth!
</p>
<button onClick={signOut}>Sign out</button>
</div>
)}
</Authenticator>
</div>
)
</code>
<code> <div>
<Authenticator>
{({ signOut, user }) => (
<div className="App">
<p onClick={() => { }}>
Hey {user.username}, welcome to my channel, with auth!
</p>
<button onClick={signOut}>Sign out</button>
</div>
)}
</Authenticator>
</div>
)
</code>
<div>
<Authenticator>
{({ signOut, user }) => (
<div className="App">
<p onClick={() => { }}>
Hey {user.username}, welcome to my channel, with auth!
</p>
<button onClick={signOut}>Sign out</button>
</div>
)}
</Authenticator>
</div>
)
}
`
my requirement is to develop the other application and with oauth, i need access tokens from this application cognito
please give me a solution for this
New contributor
user24594280 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.