So basically the issue was that I was using client Firestore SDK to query my Cloud Firestore. However, since the token is stored in the server, I had to use the server functions, which has access to a service account, which then can query Cloud Firestore.
Someone, please use the correct terminologies to further refine and make my answer more clearer.
Thanks in advance.