clear method

Future<void> clear()

Clears the current access token from secure storage.

This method removes the access token from local storage, effectively signing out the device. After calling this method, the device will need to perform attestation again to access protected resources.

Example

await calljmp.integrity.clear();
print('Access token cleared - device signed out');

Implementation

Future<void> clear() async {
  await CalljmpStore.instance.delete(CalljmpStoreKey.accessToken);
}