The `getMe` function in the user API can be used for this.