Add hook for checking API type in CheckSessionToken