def METHOD_NAME(user):
    serializer = UserAdminSerializer(user)
    data = dict(serializer.data)
    refresh = RefreshToken.for_user(user)
    data['refresh'] = str(refresh)
    data['auth_token'] = str(refresh.access_token)
    if api_settings.UPDATE_LAST_LOGIN:
        update_last_login(None, user)
    return data