Last updated 6 years ago
The authenticated user is obtained via the Application Context:
const { context } = this.props.dpapp; context.getMe().then(user => console.log(user));
You can read more about the getMe method and the type it resolves with in the API reference:
getMe