# \[Solved\] All published Apps stop Working! Urgent help please!

**URL:** <https://community.thunkable.com/t/solved-all-published-apps-stop-working-urgent-help-please/1575666>\
**Category:** Questions about Thunkable X\
**Created:** [October 22, 2021, 2:48pm UTC](https://community.thunkable.com/t/solved-all-published-apps-stop-working-urgent-help-please/1575666 "2021-10-22T14:48:52Z")\
**Posts on this page:** 1\
**Showing post:** 43

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [October 29, 2021, 1:50pm UTC](https://community.thunkable.com/t/solved-all-published-apps-stop-working-urgent-help-please/1575666/43 "2021-10-29T13:50:36Z")

</div>

@ethosworkfi

To use the token you need first to sign in to Firebase. The `Sign In` component does this for you and use the token internally.

If you want to do it yourself then you need to setup `Web API` with the following:

- Header should have `Content-Type` set to `application/json`
- URL should be `https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=` and add your Firebase API Key to it.
- Use `Web API POST` block to get the information

See this as an example

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cf08df95a4fcf3f870edac88b45768c466e86f57.png)

Of course instead of displaying the response to a label you will get the token from the response and use it with other blocks.

The response will have lots of information including `localId, idToken, refreshToken, expiresIn`

Use the `localId` in place of the UserID in the `Sign In` block and use the `idToken` to add it to the URL to get info. So the previous URL which gets information from the database will now be:  
`https://my-demodb-9d875-default-rtdb.firebaseio.com/myBook/Students.json?token=[your token]`

Google will keep this token valid for **3600 seconds** and when expires you will need the `refreshToken` to issue another API to get extra time with new values.

Hope this will give you a good start.

---

_[View the full topic](https://community.thunkable.com/t/solved-all-published-apps-stop-working-urgent-help-please/1575666)._
