Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/firebase_auth/lib/src/id_token_result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ class IdTokenResult {
@visibleForTesting
IdTokenResult(this._data, this._app);

/// Constructs a token result from a token.
///
/// This is useful when apps are implementing [FirebaseUser] and managing their
/// own tokens.
IdTokenResult.fromToken(String token)
: _data = <String, String>{'token': token},
_app = null;

final FirebaseApp _app;

final Map<dynamic, dynamic> _data;
Expand Down