- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在 Android 应用程序中,允许用户使用 Linkedin 作为使用 Firebase 函数的登录选项。用户将 linkedin token 发送到 firebase 函数,结果它收到生成的 AdminSdk
Custom token .
现在我们知道 token 可以用于登录mAuth.signInWithCustomToken(mCustomToken)
。但是我找不到使用自定义 token 生成 AuthCredential
的方法。
有OAuthProvider可以生成 AuthCredential 但重认证失败的类。getCredential(字符串 providerId,字符串 idToken,字符串 accessToken)
这个问题有什么解决办法吗?
最佳答案
不幸的是,Firebase Auth 不提供使用自定义 token 重新进行身份验证的方法。您可以将此作为功能请求:https://firebase.google.com/support/contact/bugs-features/
现在,您基本上必须再次使用 signInWithCustomToken
。但是,您将注销原始用户,并且还存在用户使用其他帐户登录的风险。您需要保留原始 uid
以确认新登录用户是同一用户(具有相同的 uid
)。如果同一用户再次登录,您还必须获取对当前用户的新引用。
关于android - Firebase 身份验证 : Re-authenticate user who is using custom token,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47715716/
根据文档,“|”可用于创建匹配任一由“|”分隔的模式的正则表达式。 我正在尝试使用以下内容来查看 moves 是否包含与“UP”“DOWN”“LEFT”“RIGHT”之一匹配的字符串: moves =
这个问题在这里已经有了答案: What is the difference between re.search and re.match? (8 个回答) 1年前关闭。 来自 regex docs它说
谁能告诉我是否可以组合像 re.IGNORECASE 这样的标志, re.MULTILINE和 re.DOTALL正则表达式匹配? r = re.compile(regex, re.IGNORECAS
这个问题在这里已经有了答案: Python re.sub with a flag does not replace all occurrences (3 个答案) 关闭 6 年前。 为什么这符合预期
提前致谢。我的问题是: 我有一段 Python 代码,我在其中尝试使用“os.walk,re and re.findall ip”来尝试在多个文件中查找所有 ip 地址,例如: file1:192.1
在演示 Python 的正则表达式功能时,我编写了一个小程序来比较 re.search()、re.findall() 和 re 的返回值.finditer()。我知道 re.search() 每行只会
我有一台运行 Lion 和 Python 2.7.1 的 Mac。我注意到 re 模块中有一些非常奇怪的东西。如果我运行以下行: print re.split(r'\s*,\s*', 'a, b,\n
在 python 中,re.search() 检查字符串中任何位置的匹配项(这是 Perl 默认执行的操作)。 那么,为什么我们不像在 Ex(2) 中那样在 Ex(1) 中得到 'ABBbbb' 的输
我正在尝试从存储在光盘上的 HTML 文档中创建单词列表。当我尝试拆分单词并将它们添加到我的单词向量中时,我最终陷入了困惑。 def get_word_vector(self): line =
所以我尝试只打印月份,当我使用时: regex = r'([a-z]+) \d+' re.findall(regex, 'june 15') 它打印:六月但是当我尝试对这样的列表执行相同操作时: re
我正在学习 Python 的正则表达式。下面有两个略有不同的 re.search() 函数。唯一的区别是我在'}'之前添加了一个空格。任何人都可以解释导致结果差异的原因吗?谢谢! 我的代码: impo
我被难住了。我正在编写 Python 3.6.2,使用 PyCharm 作为我的 IDE。以下脚本片段说明了我的问题: def dosubst(m): return m.group() + "
这个问题在这里已经有了答案: Python re.search (2 个答案) 关闭 9 年前。 我正在尝试从 Hackerrank 的问题中解决这个问题。这是一个机器学习问题。最初,我试图从语料库
请解释一下为什么使用 re.find 和 re.sub 会得到不同的结果 我解析的字符串: GRANT USAGE ON *.* TO 'testuser'@'10.10.10.10' IDENTIF
为什么re.match返回的是None对象,而类似的re.findall返回的是非空结果? 我正在解析电子邮件主题。有问题的是 subject = "=?UTF-8?B?0JLQsNGI0LUg0YH
问题第 1 部分 我得到了这个文件 f1: George Washington Joe Taylor 我想重新编译它,它看起来像这样 f1:(带空格) George Washington Joe
python正则表达式模块简介 Python 自1.5版本起增加了re 模块,它提供 Perl 风格的正则表达式模式。Python 1.5之前版本则是通过 regex 模块提供 Emacs 风格的
我的字符串看起来像“Billboard Bill SpA”。我想要一个删除 SpA 的正则表达式,但前提是它前面有一个大写单词。我使用的正则表达式是“[A-Z][a-z]*\s(SpA)”。如果我使用
我有一个 str,我想获取单引号内的子字符串 ('): line = "This is a 'car' which has a 'person' in it!" 所以我用了: name = re.fi
这个问题在这里已经有了答案: Difference between regular expression modifiers (or flags) 'm' and 's'? (3 个答案) Pyth
我是一名优秀的程序员,十分优秀!