codeuino / codebadge-backend

GNU General Public License v3.0
15 stars 23 forks source link

Added oAuth by Github #25

Closed txrp0x9 closed 4 years ago

txrp0x9 commented 4 years ago

ABOUT

Made a few changes to Login.vue so that the access token is retrieved from github. Resolves #15


TESTING

ayushnagar123 commented 4 years ago

HI @Torpedo99 I worked on your pull request please update the pull request as follows:-

ayushnagar123 commented 4 years ago

headers: { "Access-Control-Allow-Origin": "*" } @Torpedo99 add this to your in your vue.config.js in your devServer object and let me know is there any changes or not with the issue you are facing.

txrp0x9 commented 4 years ago

Integrated a simple method to extract the access_token from the response and store it locally to be used for further authorized github api calls.

txrp0x9 commented 4 years ago

Switched to using environment variables instead of saving client secret and id in a file. Read the PR details for testing procedure.