clearToken

Clears the currently stored authentication tokens from the cache.

This method should be called in the following cases:

  • When access or refresh tokens have been updated externally

  • When you want to clear sensitive token data (for example, during logout)

Note: The result of loadTokens invocation is cached internally. Calling this method will force the next authentication attempt to fetch fresh tokens through the configured loadTokens function.

Report a problem