akveo / akveo/nebular

How to get user data using NbAuthService

オープン
#2,271 コメント 0 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。