public static function getToken ($token, string $service)
	{
		switch ($service)
		{
			case GeoEnum::AppleMapKit:
			case MapTiles::MapKitStandard:
			case MapTiles::MapKitMutedStandard:
			case MapTiles::MapKitSatellite:
			case MapTiles::MapKitHybrid:
				return JWT::getToken(
					trim($token['privateKey']),
					trim($token['keyId']),
					trim($token['teamId'])
				);
			default:
				return $token;
		}
	}
public static function getToken ($token, string $service)
	{
		switch ($service)
		{
			case GeoEnum::AppleMapKit:
			case MapTiles::MapKitStandard:
			case MapTiles::MapKitMutedStandard:
			case MapTiles::MapKitSatellite:
			case MapTiles::MapKitHybrid:
				return JWT::getToken(
					trim($token['privateKey']),
					trim($token['keyId']),
					trim($token['teamId'])
				);
			default:
				return $token;
		}
	}
public static function getToken ( $ token , string $ service ) { switch ( $ service ) { case GeoEnum :: AppleMapKit : case MapTiles :: MapKitStandard : case MapTiles :: MapKitMutedStandard : case MapTiles :: MapKitSatellite : case MapTiles :: MapKitHybrid : return JWT :: getToken ( trim ( $ token [ 'privateKey' ] ) , trim ( $ token [ 'keyId' ] ) , trim ( $ token [ 'teamId' ] ) ) ; default : return $ token ; } }
Parses the token based off the given service

@param array|string $token
@param string       $service

@return false|string
Parses the token based off the given service