text: from jose import JWTError, jwt
  import os 
  from dotenv import load_dotenv
  
  load_dotenv()
  
  SECRET_KEY = os.getenv('SECRET_KEY')
  ALGORITHM = os.getenv('ALGORITHM')
  
  def decoded(token):
      try:
          data = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])
          return data
      except JWTError:
          return 'error'
  