TokenService constructor

TokenService(
  1. TokenServiceConfigurations configurations
)

Create an instance of TokenService or get the created one.

Implementation

factory TokenService(TokenServiceConfigurations configurations) {
  var instance = _createdServices[configurations];
  if (instance != null) return instance;

  var newInstance = TokenService._(configurations);
  _createdServices[configurations] = newInstance;
  return newInstance;
}