File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ CLIENT_ID=testclient
66
66
CLIENT_SECRET=testsecret
67
67
REDIRECT_URI=http://localhost:3000/callback
68
68
USER_ID=user1
69
- USERNAME =demo
70
- PASSWORD =demo
69
+ OAUTH_USERNAME =demo
70
+ OAUTH_PASSWORD =demo
71
71
```
72
72
73
73
3 . Create a ` .env ` file in the authorization-code/client directory:
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ CLIENT_ID=testclient
2
2
CLIENT_SECRET = testsecret
3
3
REDIRECT_URI = http://localhost:3000/callback
4
4
USER_ID = user1
5
- USERNAME = demo
6
- PASSWORD = demo
5
+ OAUTH_USERNAME = demo
6
+ OAUTH_PASSWORD = demo
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ db.saveClient({
24
24
25
25
db . saveUser ( {
26
26
id : process . env . USER_ID ,
27
- username : process . env . USERNAME ,
28
- password : process . env . PASSWORD ,
27
+ username : process . env . OAUTH_USERNAME ,
28
+ password : process . env . OAUTH_PASSWORD ,
29
29
} ) ;
30
30
31
31
app . use ( bodyParser . json ( ) ) ;
You can’t perform that action at this time.
0 commit comments