clearTokensIfRequired static method
Implementation
static Future clearTokensIfRequired() async {
LocalSessionState preRequestLocalSessionState =
await SuperTokensUtils.getLocalSessionState();
if (preRequestLocalSessionState.status ==
LocalSessionStateStatus.NOT_EXISTS) {
await AntiCSRF.removeToken();
await FrontToken.removeToken();
}
}