@api_view()
def get_tau_token(request):
    if (not request.user.is_authenticated):
        return JsonResponse({'error': 'You must be logged into access this endpoint.'})
    else:
        token = Token.objects.get(user=request.user)
        return JsonResponse({'token': token.key})
@api_view()
def get_tau_token(request):
    if (not request.user.is_authenticated):
        return JsonResponse({'error': 'You must be logged into access this endpoint.'})
    else:
        token = Token.objects.get(user=request.user)
        return JsonResponse({'token': token.key})