diff --git a/.github/workflows/celery.yml b/.github/workflows/celery.yml
index aa8df49..07e5557 100644
--- a/.github/workflows/celery.yml
+++ b/.github/workflows/celery.yml
@@ -23,7 +23,8 @@ jobs:
             cd /home/nata_tchikhinashvili/
             source venv/bin/activate
             cd /home/nata_tchikhinashvili/accounts_G2
-            git pull
+            git fetch origin
+            git reset --hard origin/dev
             git checkout dev
             pip3 install -r requirements.txt
             deactivate
diff --git a/apis/views.py b/apis/views.py
index 69b28b0..472042b 100644
--- a/apis/views.py
+++ b/apis/views.py
@@ -2258,9 +2258,9 @@ def store_token_in_cache(self, token):
         calculates the remaining TTL, and stores the token in Redis.
         If the token is expired, it will not be stored.
         """
-
+        
         payload = jwt.decode(
-            token, os.environ.get("RSA_PUBLIC_KEY"), algorithms=["RS256"]
+            token, os.environ.get("RSA_PUBLIC_KEY").replace("\\n", "\n"), algorithms=["RS256"]
         )
         exp = payload.get("exp", 0)
         now = int(time.time())