diff --git a/.github/workflows/build-docker-and-push.yml b/.github/workflows/build-docker-and-push.yml index 92faa3a..1551937 100644 --- a/.github/workflows/build-docker-and-push.yml +++ b/.github/workflows/build-docker-and-push.yml @@ -47,8 +47,8 @@ jobs: - name: Log in to Docker Hub uses: docker/login-action@v3 with: - username: dhruvdavee - password: Dhruvd12@ + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} - name: Extract metadata (tags, labels) for Docker id: meta diff --git a/src/service/firebase-service.ts b/src/service/firebase-service.ts index 46202ca..413fa10 100644 --- a/src/service/firebase-service.ts +++ b/src/service/firebase-service.ts @@ -15,3 +15,8 @@ export const getUserFromToken = async (token: string) => { const user = await admin.auth().getUser(token); return user; }; + +export const testingToken = async (token: string) => { + const user = await admin.auth().verifyIdToken(token); + return user; +} \ No newline at end of file