Giter Site home page Giter Site logo

Comments (3)

lupas avatar lupas commented on May 18, 2024

Over two years of inactivity, seems not to be important at this point. Will reopen if it ever comes up.

from firebase-module.

Flawe avatar Flawe commented on May 18, 2024

@lupas
I might have a need for something like this:

I have auth ssr enabled and a serverMiddleware with an endpoint that makes a query on a SQL database. I want this query to be restricted to rows owned by the logged in user (i.e. the rows should have a column with the user's uid). Which means I need a secure way of knowing the currently logged in user's uid in my serverMiddleware.

If I understand things correctly, because serverMIddleware runs first, we don't have access to the decoded token (no res.locals populated yet). Is my only option to pass the token from the client with the call to the serverMiddleware endpoint, and decode the token manually there? Are there other options?

from firebase-module.

ankurgla22 avatar ankurgla22 commented on May 18, 2024

Is there any update on it?
I want to make APIs for the firebase store so I want to use nuxt-fire in ServerMiddleware

from firebase-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.