X-Git-Url: http://nitlanguage.org diff --git a/lib/popcorn/pop_auth.nit b/lib/popcorn/pop_auth.nit index 9d134fa..285d032 100644 --- a/lib/popcorn/pop_auth.nit +++ b/lib/popcorn/pop_auth.nit @@ -77,7 +77,8 @@ # ~~~ module pop_auth -import pop_handlers +import pop_json +import pop_sessions import github # Github OAuth login handler. @@ -196,12 +197,9 @@ class GithubOAuthCallBack return end - # FIXME reinit curl before next request to avoid weird 404 - curl = new Curl - # Load github user var gh_api = new GithubAPI(access_token) - var user = gh_api.load_auth_user + var user = gh_api.get_auth_user if user == null then res.error 401 return