Closed txrp0x9 closed 4 years ago
HI @Torpedo99 I worked on your pull request please update the pull request as follows:-
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.
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.
Switched to using environment variables instead of saving client secret and id in a file. Read the PR details for testing procedure.
ABOUT
Made a few changes to Login.vue so that the access token is retrieved from github. Resolves #15
TESTING
http://localhost:8080/#/auth
.env
file in the root folder of the project (where package.json is)VUE_APP_CLIENT_ID=<client id>
VUE_APP_CLIENT_SECRET=<client secret>
npm start serve