изменил длительность токена

This commit is contained in:
Mike0001-droid 2024-06-18 17:47:47 +05:00
parent e2a5002d91
commit 96b4309da6
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -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),
}