Giter Site home page Giter Site logo

Comments (9)

google-oss-bot avatar google-oss-bot commented on June 5, 2024

Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight.

from firebase-admin-python.

google-oss-bot avatar google-oss-bot commented on June 5, 2024

Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information.

from firebase-admin-python.

hiranya911 avatar hiranya911 commented on June 5, 2024

This is not likely to get fixed. Why are you even trying to decode custom tokens on your own? They are only meant to be passed along to the Firebase Auth servers via a signInWithCustomToken() call.

from firebase-admin-python.

IZAQI avatar IZAQI commented on June 5, 2024

Thank you for your reply.

I understand that I can sign in by calling signInWithCustomToken ().
Currently avoiding errors by calling signInWithCustomToken ().
I asked a question to judge whether this error avoidance should be adopted as a formal process.

In my system, multiple databases work together with Firebase users as keys.
Therefore, I do not necessarily need to sign in to Firebase.
Since it is assumed that the load becomes instantaneously high, if only the target user is required in the REST API, I decode it myself.
There was concern that sign-in and sign-out would be repeated in parallel.
Is it reasonable to use signInWithCustomToken () even under such circumstances?


This sentence translated Japanese into English using Google Translate.

from firebase-admin-python.

hiranya911 avatar hiranya911 commented on June 5, 2024

It's very difficult to understand your specific question or use case from the translated description. In general, you should never mint a custom token, unless you're planning to sign in with it in a client-side app (Web, Android or IOS). That's all they are good for. If you just need to pass a uid to a client app, I'm sure there are other easier ways for that.

from firebase-admin-python.

LeonardoRick avatar LeonardoRick commented on June 5, 2024

does this library have a signInWithCustomToken() vesion in python? I'm trying to connect a client python application

from firebase-admin-python.

hiranya911 avatar hiranya911 commented on June 5, 2024

This library doesn't provide any client-side APIs at the moment.

from firebase-admin-python.

LeonardoRick avatar LeonardoRick commented on June 5, 2024

@hiranya911 thanks. Any suggestion to achieve my goal?

from firebase-admin-python.

hiranya911 avatar hiranya911 commented on June 5, 2024

You can try the REST API: https://firebase.google.com/docs/reference/rest/auth#section-verify-custom-token

Requires a web API key to access.

from firebase-admin-python.

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.