{"size": 326, "ext": "js", "max_stars_repo_path": "pages/api/me.js", "max_stars_repo_name": "rsneh/liqras", "max_stars_repo_stars_event_min_datetime": "2021-07-18T06:55:09.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-18T06:55:09.000Z", "max_issues_repo_path": "pages/api/me.js", "max_issues_repo_name": "Siddharth1010/liqras", "max_issues_repo_issues_event_min_datetime": "2020-12-17T22:21:46.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-20T18:49:49.000Z", "max_forks_repo_path": "pages/api/me.js", "max_forks_repo_name": "Siddharth1010/liqras", "max_forks_repo_forks_event_min_datetime": "2021-01-11T09:29:52.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-11T09:29:52.000Z"}
{"max_stars_count": 1, "max_issues_count": 18, "max_forks_count": 1, "avg_line_length": 25.0769230769, "max_line_length": 54, "alphanum_fraction": 0.6717791411}
import auth0 from 'utils/auth0';

export default async function me(req, res) {
  try {
    const session = await auth0.getSession(req)
    if (!session) res.status(204).end()
    else await auth0.handleProfile(req, res)
  } catch (error) {
    console.error(error)
    res.status(error.status || 500).end(error.message)
  }
}
