def generate_login_token(user):
 return _security.login_serializer.dumps([str(user.id)])

def generate_login_token ( user ) : return _security . login_serializer . dumps ( [ str ( user . id ) ] )
generates a unique login token for the specified user .