Skip to content

Instantly share code, notes, and snippets.

Created Sep 10, 2019
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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment