Skip to content
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions lib/src/model/access_token.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ class AccessToken {
}

/// The valid scopes bound to this access token.
List<String> get scopes => _data['scope'].split(' ');
List<String> get scopes =>
(_data['scope'] as String?)?.split(' ') ?? <String>[];

/// The expected authorization type when this token is used in a request
/// header. Fixed to `Bearer` for now.
String get tokenType => _data['token_type'];
String get tokenType => (_data['token_type'] as String?) ?? 'Bearer';

/// The email address set by the user. This value only exists when `idToken` is
/// valid and the user has set the email address in LINE and agreed to share it
Expand Down
Loading