toString method

  1. @override
String toString()
override

Redacts accessJwt and refreshJwt so credentials are not leaked through logs, print, or crash reporters that stringify a Session.

Implementation

@override
String toString() =>
    'Session(did: $did, handle: $handle, email: $email, '
    'emailConfirmed: $emailConfirmed, emailAuthFactor: $emailAuthFactor, '
    'accessJwt: [REDACTED], refreshJwt: [REDACTED], didDoc: $didDoc, '
    'active: $active, status: $status)';