【发布时间】:2018-12-13 08:08:02
【问题描述】:
如何使用 AngularFireAuth 让登录到我系统的用户会话每 1 小时过期一次?
在我的系统配置中,我想让经过身份验证的用户能够配置会话过期的时间。
要登录系统,我使用以下代码。
signIn(user: User) {
return this.afAuth.auth.signInWithEmailAndPassword(user.email, user.password);
}
我一直在查看文档,但我不知道如何将其应用于我的系统。 https://firebase.google.com/docs/auth/web/auth-state-persistence?hl=pt-br
我想通过 AngularFireAuth 了解如何执行此操作。 https://github.com/angular/angularfire2/blob/master/docs/auth/getting-started.md
【问题讨论】:
标签: angular typescript firebase-authentication