-
-
Save uno-de-piera/9fb3b2b246769c27e50ecdfc131ad269 to your computer and use it in GitHub Desktop.
This file contains 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 { Auth } from "aws-amplify"; | |
export async function getUser() { | |
try { | |
const user = await Auth.currentAuthenticatedUser(); | |
return user; | |
} catch (e) { | |
console.log(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment