createStrategy method
Creates a strategy based on the logout type
logoutType The type of logout strategy needed
Returns the appropriate strategy instance
Implementation
TokenInvalidationStrategy createStrategy(LogoutType logoutType) {
switch (logoutType) {
case LogoutType.singleDevice:
return SingleDeviceLogoutStrategy(_tokenService);
case LogoutType.allDevices:
return AllDevicesLogoutStrategy(_tokenService);
}
}