Skip to content

Commit 519518c

Browse files
docs(auth): update getIdTokenResult inline documentation (#9150)
1 parent 6d1790d commit 519518c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/firebase_auth/firebase_auth/lib/src/user.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ class User {
123123
/// Returns a [IdTokenResult] containing the users JSON Web Token (JWT) and
124124
/// other metadata.
125125
///
126+
/// Returns the current token if it has not expired. Otherwise, this will
127+
/// refresh the token and return a new one.
128+
///
126129
/// If [forceRefresh] is `true`, the token returned will be refreshed regardless
127130
/// of token expiration.
128131
Future<IdTokenResult> getIdTokenResult([bool forceRefresh = false]) {

packages/firebase_auth/firebase_auth_platform_interface/lib/src/platform_interface/platform_interface_user.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ abstract class UserPlatform extends PlatformInterface {
139139
/// Returns a [IdTokenResult] containing the users JSON Web Token (JWT) and
140140
/// other metadata.
141141
///
142+
/// Returns the current token if it has not expired. Otherwise, this will
143+
/// refresh the token and return a new one.
144+
///
142145
/// If [forceRefresh] is `true`, the token returned will be refresh regardless
143146
/// of token expiration.
144147
Future<IdTokenResult> getIdTokenResult(bool forceRefresh) {

0 commit comments

Comments
 (0)