akveo / akveo/nebular

rememberMe unused in NbAuthService

未关闭
#114 9 条评论 6 个 reaction 已指派 1 人 已被 @yggg 认领 在 GitHub 查看
enhancement help wanted module:auth needs docs
主要语言
TypeScript
星标
8.1k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

Hi Akveo,

I see that when using NbAuthService for login:
`authService.authenticate('provider', 'data)...`

The rememberMe checkbox (from your NbLoginComponent) is never checked before saving the token into TokenService
https://github.com/akveo/nebular/blob/893d56adfe56a0d4f6e8fe9b9591a20e3bafade4/src/framework/auth/services/auth.service.ts#L134

Result: token is always saved (even if checkbox not checked). So when I close my browser and visit again, I'm still logged (token is still here because I did not logout).

Is this normal behavior ?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。