exists method

Future<bool> exists()

Returns true if a token is currently in storage.

Equivalent to (await read()) != null but reads more naturally at call sites that only need a presence check — e.g. "is the user logged in?" without needing the token itself.

Implementation

Future<bool> exists() async => (await read()) != null;