How to set token expiration time according to user type in django-graphql-jwt?

前端 未结 0 695
Happy的楠姐
Happy的楠姐 2021-01-22 16:53

Let\'s say we have two type of users, bot users and normal users:

class User(AbstractBaseUser, PermissionsMixin):
    username = models.CharField(max_length=255,          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题