How to get user data using NbAuthService
オープン
- 主要言語
- TypeScript
- スター
- 8.1k
- フォーク
- 1.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
How to get user data from this code? i only can get user token, not user data
constructor(service: NbAuthService, @Inject(NB_AUTH_OPTIONS) options: {}, cd: ChangeDetectorRef, router: Router) {
super(service, options, cd, router);
this.service.onTokenChange()
.pipe(takeUntil(this.destroy$))
.subscribe((token: NbAuthOAuth2JWTToken) => {
if (token.isValid()) {
this.token = token;
}
});
}
login() {
this.service.authenticate('google')
.pipe(takeUntil(this.destroy$))
.subscribe((authResult: NbAuthResult) => {
});
}
コントリビューションガイド
評価
この issue はまだ評価されていません。