Last active
May 22, 2021 10:22
-
-
Save dipeshhkc/b0e81c2ddae84dd8bcb218c8fff89d16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AmplifySignOut} from "@aws-amplify/ui-react"; | |
import { Auth } from "aws-amplify"; | |
<AmplifySignOut/> | |
OR | |
<div onClick={() => { | |
//do something during signout | |
Auth.signOut(); | |
}} | |
> Sign Out </div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment