Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created Sep 10, 2019
Embed
What would you like to do?
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