【发布时间】:2019-12-18 14:43:38
【问题描述】:
我在firebase身份验证中使用createSessionCookie创建会话cookie,使用成功登录Google帐户后获得的id令牌。
是否可以在createSessionCookie 生成的 cookie 中包含其他信息,例如用户名或电子邮件?
我想知道是否可以使用createCustomtoken,但根据文档,用户需要使用signInWithCustomToken 登录。在这种情况下,我不确定用户是否可以通过 Google 提供商进行身份验证。
【问题讨论】:
标签: firebase firebase-authentication firebase-admin