Skip to content

Commit

Permalink
fix(oauth2 scheme): add token and refresh token maxAge
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAS51 committed Mar 11, 2020
1 parent c9dd129 commit d807413
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/schemes/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ const DEFAULTS = {
token: {
property: 'access_token',
type: 'Bearer',
name: 'Authorization'
name: 'Authorization',
maxAge: 1800
},
refreshToken: {
property: 'refresh_token'
property: 'refresh_token',
maxAge: 60 * 60 * 24 * 30
},
response_type: 'token'
}
Expand Down

0 comments on commit d807413

Please sign in to comment.