title: TypeError: unsupported type for timedelta seconds component: NoneType
body: <pre><code>File &quot;C:\Users\rafae\Projects\Django and React Tuto\music_controller\spotify\util.py&quot;, line 22, in update_or_create_user_tokens
      expires_in = datetime.now() + timedelta(seconds=expires_in)
  TypeError: unsupported type for timedelta seconds component: NoneType
  </code></pre>
  <p>Hey guys, getting this error when redirecting from spotify api and going back to my local server. Above is the error message and the location.
  Below is the code inside models.py, determing the value of &quot;expires_in&quot;:</p>
  <pre><code>class SpotifyToken(models.Model):
      ...
      expires_in = models.DateTimeField()
      ... 
  </code></pre>
  <p>Thanks in advance!</p>