code: def create_token_for_user(user: get_user_model()) -> bytes:
          
          token = urandom(48)
          AuthToken.objects.create(
              hashed_token=AuthToken._hash_token(token),
              user=user)
          return token
docs: Create a new random auth token for user.