firebase-authentication

Back button will bring to home page after firebase logout on app

二次信任 提交于 2020-12-15 06:52:16
问题 My issue is very similar to this post: (When I press back button on login page it will go to main menu (after I select yes for logout in MainMenu activity)). Basically, even after I select "YES" option to logout, it does bring me back to the indented page (Login page). However, when I press the back button on my actual phone (S7 Edge+) and 2 emulators (Nexus 4 & Pixel 2 XL), it bring me to the dashboard page again which it should not be that way. **WHAT I HAVE TRIED was I added finish() to

Firebase phone Authentication failes

爱⌒轻易说出口 提交于 2020-12-15 06:32:48
问题 I wanted to do Firebase Login using Phone Auth. As I am developing and I don't have an access to device & Apple developer account, so I went to implement this feature using reCAPTCHA verification but I get this following error {"error":{"code":403,"message":"Requests from this ios client application are blocked.","errors":[{"message":"Requests from this ios client application are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}} I have implemented that as it

Firebase phone Authentication failes

半腔热情 提交于 2020-12-15 06:32:14
问题 I wanted to do Firebase Login using Phone Auth. As I am developing and I don't have an access to device & Apple developer account, so I went to implement this feature using reCAPTCHA verification but I get this following error {"error":{"code":403,"message":"Requests from this ios client application are blocked.","errors":[{"message":"Requests from this ios client application are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}} I have implemented that as it

Firebase phone Authentication failes

梦想的初衷 提交于 2020-12-15 06:32:02
问题 I wanted to do Firebase Login using Phone Auth. As I am developing and I don't have an access to device & Apple developer account, so I went to implement this feature using reCAPTCHA verification but I get this following error {"error":{"code":403,"message":"Requests from this ios client application are blocked.","errors":[{"message":"Requests from this ios client application are blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED"}} I have implemented that as it

Why does the user getting redirected to the login page on refresh?

泪湿孤枕 提交于 2020-12-15 03:44:55
问题 Okay, there's this simple REACTJS app, where firebase is used. There once you login everything works fine except when you hit the refresh icon. The moment you do it, it redirects you to the previous place where you were asked to login. That's the problem that this newly-born coder is trying to solve! I can give you following snippets of code: This is of the landing page function Landing() { const [{ }, dispatch] = useStateValue(); firebase.auth().setPersistence(firebase.auth.Auth.Persistence

Why does the user getting redirected to the login page on refresh?

自闭症网瘾萝莉.ら 提交于 2020-12-15 03:44:40
问题 Okay, there's this simple REACTJS app, where firebase is used. There once you login everything works fine except when you hit the refresh icon. The moment you do it, it redirects you to the previous place where you were asked to login. That's the problem that this newly-born coder is trying to solve! I can give you following snippets of code: This is of the landing page function Landing() { const [{ }, dispatch] = useStateValue(); firebase.auth().setPersistence(firebase.auth.Auth.Persistence

Firebase getDisplayName() returns empty

≯℡__Kan透↙ 提交于 2020-12-13 11:38:06
问题 I have the following code that should return the user data logged in by Firebase, it returns the user with no problem, ID and Email, but the value of the name returns empty or null. As if the user had been registered without a name, but in the register the name of the user appears. Does anyone know why? I already searched it and it looks like it has some bug with the Firebase getDisplayName. Does anyone have a solution? public static FirebaseUser getUsuarioAtual() { FirebaseAuth usuario =

How can you persist a logged-in user with firebase?

我的未来我决定 提交于 2020-12-13 07:13:18
问题 Thanks a bunch for reading this newbie's question. So, there is a ReactJS app which is using firebase for its authentication. Everytime the page is refreshed, the user is gone forever until you login in with the redirected login page. What have been done so far? Well, after plodding through all the possible Stackoverflows flowing flawless answers, following have been done: Implemented the onAuthStateChanged() function like as it appears below: firebase.auth().onAuthStateChanged((user) => { if

How can you persist a logged-in user with firebase?

烂漫一生 提交于 2020-12-13 07:11:52
问题 Thanks a bunch for reading this newbie's question. So, there is a ReactJS app which is using firebase for its authentication. Everytime the page is refreshed, the user is gone forever until you login in with the redirected login page. What have been done so far? Well, after plodding through all the possible Stackoverflows flowing flawless answers, following have been done: Implemented the onAuthStateChanged() function like as it appears below: firebase.auth().onAuthStateChanged((user) => { if

Firebase auth user.getIdToken() sending expired tokens

自古美人都是妖i 提交于 2020-12-13 06:40:42
问题 As far as I know, getIdToken() should by default send an unexpired token to the server, handling the token refreshing internally. However, I am getting many many errors from my server regarding expired tokens. On my frontend, I created axios instance as follows: const base = axios.create({ baseURL: apiUrl, }); base.interceptors.request.use(async (config) => { const token = await getAccessToken(); config.headers.Authorization = `Bearer ${token}`; return config; }); const getAccessToken = async