изменил длительность токена
This commit is contained in:
parent
e2a5002d91
commit
96b4309da6
|
|
@ -34,7 +34,6 @@ class SongViewSet(GenericViewSet):
|
|||
try:
|
||||
song_obj = Song.objects.get(azura_id=azura_id)
|
||||
favorite_songs = FavoriteSong.objects.get(user=request.user, song=song_obj)
|
||||
serializer = FavoriteSongSerializer(favorite_songs)
|
||||
return Response({"is_favorite": True}, status=status.HTTP_200_OK)
|
||||
except ObjectDoesNotExist:
|
||||
return Response({"is_favorite": False}, status=status.HTTP_200_OK)
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ CORS_ALLOWED_ORIGINS = [
|
|||
from datetime import timedelta
|
||||
|
||||
SIMPLE_JWT = {
|
||||
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=180),
|
||||
'ACCESS_TOKEN_LIFETIME': timedelta(days=1),
|
||||
'REFRESH_TOKEN_LIFETIME': timedelta(days=30),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue