Skip to content

Commit

Permalink
default cookie long session
Browse files Browse the repository at this point in the history
  • Loading branch information
dakom committed Jun 7, 2018
1 parent 4c3d666 commit e1fa754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ func GetInitialDurationByAudience(audience string) int64 {
switch audience {
case JWT_AUDIENCE_APP:
return JWT_DURATION_LONG
case JWT_AUDIENCE_COOKIE:
return JWT_DURATION_LONG
default:
return JWT_DURATION_SHORT
}
Expand Down

0 comments on commit e1fa754

Please sign in to comment.