How can i test this function from firebase verify_id_token in backend without frontend? [duplicate]

how can i verify the token id from firebase?

def login(request):
    authorization_header = request.META.get('HTTP_AUTHORIZATION')

    try:
        decoded_token = auth.verify_id_token(token)
        cars = Person.objects.all()
        response_object = {'data': serialize("json", cars)}
    except:
        return JsonResponse({"data": "user token id invalid"})
    return JsonResponse(response_object)

it suppose what i have to send firebase.auth().currentUser.getIdToken() from frontend to backend, but how can i test this function just in backend without frontend?

what else i have to do in the backend side?

Back to Top