Skip to content

Commit 9c34fb5

Browse files
committed
Remove credentials
1 parent c76a864 commit 9c34fb5

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

authorization_code/app.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ var request = require('request'); // "Request" library
1212
var querystring = require('querystring');
1313
var cookieParser = require('cookie-parser');
1414

15-
var client_id = '03ffe0cac0a0401aa6673c3cf6d02ced'; // Your client id
16-
var client_secret = 'a57c43efb9644574a96d6623fb8bfbc2'; // Your client secret
17-
var redirect_uri = 'http://localhost:8888/callback'; // Your redirect uri
15+
var client_id = 'CLIENT_ID'; // Your client id
16+
var client_secret = 'CLIENT_SECRET'; // Your secret
17+
var redirect_uri = 'REDIRECT_URI'; // Your redirect uri
1818

1919
/**
2020
* Generates a random string containing numbers and letters

client_credentials/app.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99

1010
var request = require('request'); // "Request" library
1111

12-
var client_id = '03ffe0cac0a0401aa6673c3cf6d02ced'; // Your client id
13-
var client_secret = 'a57c43efb9644574a96d6623fb8bfbc2'; // Your client secret
14-
var redirect_uri = 'http://localhost:8888/callback'; // Your redirect uri
12+
var client_id = 'CLIENT_ID'; // Your client id
13+
var client_secret = 'CLIENT_SECRET'; // Your secret
1514

1615
// your application requests authorization
1716
var authOptions = {

implicit_grant/public/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ <h2>oAuth info</h2>
131131

132132
document.getElementById('login-button').addEventListener('click', function() {
133133

134-
var client_id = '03ffe0cac0a0401aa6673c3cf6d02ced'; // Your client id
135-
var redirect_uri = 'http://localhost:8888/'; // Your redirect uri
134+
var client_id = 'CLIENT_ID'; // Your client id
135+
var redirect_uri = 'REDIRECT_URI'; // Your redirect uri
136136

137137
var state = generateRandomString(16);
138138

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"author": "Doozer",
3-
"name": "web-api-code-example",
4-
"description": "Basic examples of the Spotify authorization flows through oAuth2",
2+
"author": "Spotify",
3+
"name": "web-api-auth-examples",
4+
"description": "Basic examples of the Spotify authorization flows through OAuth 2",
55
"version": "0.0.1",
6-
"main": "app.js",
76
"dependencies": {
87
"cookie-parser": "1.3.2",
98
"express": "~4.0.0",

0 commit comments

Comments
 (0)