title: Modifying jwt access token expiry time in django using simplejwt module
body: <pre><code>from rest_framework_simplejwt.serializers import TokenObtainPairSerializer
  
  from rest_framework_simplejwt.views import TokenObtainPairView
  
  from rest_framework_simplejwt.utils import datetime_to_epoch
  
  SUPERUSER_LIFETIME = datetime.timedelta(minutes=1)
  
  class MyTokenObtainPairSerializer(TokenObtainPairSerializer):
  
  @classmethod
  def get_token(cls, user):        
      token = super(MyTokenObtainPairSerializer, cls).get_token(user)
      token['name']       = user.username
      token['user_id']    = user.id
  
      if user.is_superuser:
          #token.set_exp(from_time=starttime,lifetime=SUPERUSER_LIFETIME)
          token.payload['exp'] = datetime_to_epoch(token.current_time + SUPERUSER_LIFETIME)
  
      return token
  
  class MyTokenObtainPairView(TokenObtainPairView):
       serializer_class = MyTokenObtainPairSerializer
  </code></pre>
  
  <p>i have tried this code (followed this link: <a href="https://stackoverflow.com/questions/53827440/how-can-we-assign-different-expiry-time-to-different-users-in-jwt-tokens-in-djan">How can we assign different expiry time to different users in jwt tokens in django</a> ). This code updates the expiry time of refresh token but i want to update expiry time of access token in django using simplejwt module. any suggestions please.</p>