diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-20 16:23:58 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-20 16:23:58 +0200 |
commit | 2f372a865487427ff97ad17edd0e6adfbb478c80 (patch) | |
tree | 84e8b2ba2240e83dcdeeb057579327b0a663974b /server/initializers/installer.js | |
parent | 66698b833f77806045b36fdeba612acda43dd7f7 (diff) | |
download | PeerTube-2f372a865487427ff97ad17edd0e6adfbb478c80.tar.gz PeerTube-2f372a865487427ff97ad17edd0e6adfbb478c80.tar.zst PeerTube-2f372a865487427ff97ad17edd0e6adfbb478c80.zip |
Server: implement refresh token
Diffstat (limited to 'server/initializers/installer.js')
-rw-r--r-- | server/initializers/installer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/installer.js b/server/initializers/installer.js index 490084104..32830d4da 100644 --- a/server/initializers/installer.js +++ b/server/initializers/installer.js | |||
@@ -66,7 +66,7 @@ function createOAuthClientIfNotExist (callback) { | |||
66 | const secret = passwordGenerator(32, false) | 66 | const secret = passwordGenerator(32, false) |
67 | const client = new Client({ | 67 | const client = new Client({ |
68 | clientSecret: secret, | 68 | clientSecret: secret, |
69 | grants: [ 'password' ] | 69 | grants: [ 'password', 'refresh_token' ] |
70 | }) | 70 | }) |
71 | 71 | ||
72 | client.save(function (err, createdClient) { | 72 | client.save(function (err, createdClient) { |