Cache Invalidation

You should always invalidate the token once you receive a delete event in the webhook

use SSOfy\APIClient;
...
$client = new APIClient($config);

$client->invalidateTokenCache('TOKEN');

In case for some reason the cache for a particular token could not be erased or the events weren't delivered to your webhook, make sure to invalidate all tokens to let the SDK reevaluate the verifications:

use SSOfy\APIClient;
...
$client = new APIClient($config);

$client->purgeTokenCache();
ssofyKnowledge Base
At our core, we believe that staying up-to-date with the latest trends and advancements in Authentication and related areas is essential. That's why we take great pride in keeping you informed with the latest insights, updates, and news in this rapidly evolving landscape.


Do you need support?
SSOfy is by Cubelet Ltd.
Copyright © 2024 Cubelet Ltd. All rights reserved.