Skip to content

Refactor Sessions Controller - auth #25

@epintozzi

Description

@epintozzi

Refactor to a Service Oauth file:
response = Faraday.post("https://github.com/login/oauth/access_token?client_id=#{ENV["github_client_id"]}&client_secret=#{ENV["github_client_secret"]}&code=#{params["code"]}") token = response.body.split(/\W+/)[1] oauth_response = Faraday.get("https://api.github.com/user?access_token=#{token}") auth = JSON.parse(oauth_response.body)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions