我使用 JS 库调用 firebase.auth().signInWithEmailAndPassword(email, password)并返回一个 User对象。
我用 curl 'https://docs-examples.firebaseio.com/rest/saving-data/auth-example.json?auth=TOKEN'给 Firebase 打电话。
令牌最终会过期。为了使它看起来像应用程序(iOS和 macOS)具有持久登录,我想刷新令牌,如何使用 REST或 JS库来做到这一点?我在文档中找不到任何允许我使用 refreshToken获得新的 token的调用。