mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Add authentications for routes that need it and adapts the tests
This commit is contained in:
parent
c9bf7d30bd
commit
0c1cbbfe29
15 changed files with 416 additions and 144 deletions
|
@ -104,7 +104,7 @@ function saveToken (token, client, user) {
|
|||
}
|
||||
|
||||
return OAuthTokensDB.create(token_to_create, function (err, token_created) {
|
||||
if (err) throw err // node-oauth2-server library use Promise.try
|
||||
if (err) throw err // node-oauth2-server library uses Promise.try
|
||||
|
||||
token_created.client = client
|
||||
token_created.user = user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue