1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Add refresh_token_expires_in to oauth res

This commit is contained in:
Chocobozzz 2021-02-25 15:25:48 +01:00
parent 031ea8efed
commit e7812bf091
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 11 additions and 2 deletions

View file

@ -19,6 +19,7 @@ const oAuthServer = new OAuthServer({
useErrorHandler: true,
accessTokenLifetime: OAUTH_LIFETIME.ACCESS_TOKEN,
refreshTokenLifetime: OAUTH_LIFETIME.REFRESH_TOKEN,
allowExtendedTokenAttributes: true,
continueMiddleware: true,
model: require('./oauth-model')
})