From 414370ed7341306b2da41232104507ba78b01641 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Thu, 22 Aug 2019 12:14:18 +0300 Subject: [PATCH] fixed NewsList view --- apps/utils/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/utils/views.py b/apps/utils/views.py index 90338ca2..d9482456 100644 --- a/apps/utils/views.py +++ b/apps/utils/views.py @@ -106,11 +106,13 @@ class JWTGenericViewMixin(generics.GenericAPIView): return [self.COOKIE(key='access_token', value=_cookies.get('access_token'), http_only=self.ACCESS_TOKEN_HTTP_ONLY, - secure=self.ACCESS_TOKEN_SECURE), + secure=self.ACCESS_TOKEN_SECURE, + max_age=_cookies.get('max_age')), self.COOKIE(key='refresh_token', value=_cookies.get('refresh_token'), http_only=self.REFRESH_TOKEN_HTTP_ONLY, - secure=self.REFRESH_TOKEN_SECURE)] + secure=self.REFRESH_TOKEN_SECURE, + max_age=_cookies.get('max_age'))] class JWTListAPIView(JWTGenericViewMixin, generics.ListAPIView):