hasCredential method

bool hasCredential(
  1. Uri url
)

Returns whether or not store contains a token that could be used for authenticating given url.

Implementation

bool hasCredential(Uri url) =>
    credentials.any((it) => it.url == url && it.isValid());