Skip to content

Commit

Permalink
Auth flow correctly pulls from env file
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeguberte committed Sep 12, 2023
1 parent d9c7e25 commit 56cbe5b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
19 changes: 12 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
},
"dependencies": {
"axios": "^1.1.2",
"dotenv": "^16.0.3",
"pinia": "^2.0.22",
"vue": "^3.2.37",
"vue-router": "^4.1.5",
"glob-parent": ">=5.1.2",
"json5": ">=2.2.2",
"pinia": "^2.0.22",
"trim": ">=0.0.3",
"trim-newlines": ">=3.0.1",
"glob-parent": ">=5.1.2",
"trim": ">=0.0.3"
"vue": "^3.2.37",
"vue-router": "^4.1.5"
},
"devDependencies": {
"@babel/core": "^7.20.5",
Expand All @@ -35,17 +34,16 @@
"@vue/test-utils": "^2.1.0",
"autoprefixer": "^10.4.12",
"babel-loader": "^8.3.0",
"dotenv": "^16.3.1",
"glob-parent": ">=5.1.2",
"happy-dom": "^7.4.0",
"json5": ">=2.2.2",
"postcss": "^8.4.18",
"tailwindcss": "^3.1.8",
"trim": ">=0.0.3",
"trim-newlines": ">=3.0.1",
"vite": "^3.2.7",
"vitest": "^0.24.0",
"vue-loader": "^16.8.3",
"json5": ">=2.2.2",
"trim-newlines": ">=3.0.1",
"glob-parent": ">=5.1.2",
"trim": ">=0.0.3"


"vue-loader": "^16.8.3"
}
}
2 changes: 0 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import { createApp } from 'vue';

import { createPinia } from 'pinia';
Expand Down
4 changes: 2 additions & 2 deletions src/stores/SpotifyAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const useSpotifyStore = defineStore('spotify', {
},
actions: {
getAuthURL(){
const client_id = '';
const redirect_uri = '';
const client_id = import.meta.env.VITE_CLIENT_ID;
const redirect_uri = import.meta.env.VITE_CALLBACK_URL;
const scope = 'playlist-read-private user-read-private user-read-email';
let url = 'https://accounts.spotify.com/authorize'
url += '?response_type=token'
Expand Down

0 comments on commit 56cbe5b

Please sign in to comment.